Boost logo

Boost :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2006-05-11 05:28:25


On 05/10/2006 11:18 PM, David Abrahams wrote:
> Larry Evans <cppljevans_at_[hidden]> writes:
[snip]
>>however, if two stl iterator's do compare equal then the operator*
>>would return the same value for the same number of operator++'s,
>>wouldn't they?
>
>
> Assuming the comparison was a well-defined operation in the first
> place, yes. If you're comparing iterators from different sequences,
> all bets are off.
>
Thanks! That last statement convinces me. I remember vaguely reading
about that somewhere in the standard. Dan's remark about
"Comparing iterators from different sequences" being undefined
was what first prompted my memory about that.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk