
12 Nov
2004
12 Nov
'04
5:33 p.m.
David Abrahams <dave@boost-consulting.com> writes:
This leaves only the problem of shrinking the range at the start. What do you think about range.begin() (non-const version) returning a reference to its begin iterator? Then ++r.begin() would be the equivalent of the current ++r. Similarly end() can return a reference, making shortening the range at the end possible.
Iteration should mutate anything but iterators, IMO.
In case it wasn't clear, I meant to write Iteration should not mutate anything but iterators, IMO. ^^^ -- Dave Abrahams Boost Consulting http://www.boost-consulting.com