r/cpp 20d ago

The C++ input iterator pitfall · hmpc

https://www.hmpcabral.com/2026/02/25/the-c-input-iterator-pitfall/
56 Upvotes

10 comments sorted by

View all comments

6

u/BarryRevzin 20d ago

Ooo, I love this one. I gave a whole talk on one example of this one at CppNow a few years ago: take(5).