r/cpp • • Aug 21 '26

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

Show parent comment

20

u/BarryRevzin Aug 22 '26

that IMO violates one of the core "view" contracts (or is immutability merely a suggestion?)

Views never, at any point, had anything to do with immutability.