|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2004-11-12 12:33:15
David Abrahams <dave_at_[hidden]> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk