
18 Mar
2010
18 Mar
'10
11:10 a.m.
On 18 March 2010 09:54, Christopher Crickmar <cjcrickmar@googlemail.com> wrote:
Given that the next iterator is meaningless for an unordered container and that cached_begin_bucket_ is always valid would it be bad manners to always return begin() ?
The next iterator isn't meaningless, the elements in a container have a sequence. While it isn't fixed, it never changes due to an erase. The main reason for returning the next iterator is so that you can iterate through a container erasing elements as you go, returning 'begin()' would break that. Daniel