
11 May
2006
11 May
'06
9:28 a.m.
On 05/10/2006 11:18 PM, David Abrahams wrote:
Larry Evans <cppljevans@cox-internet.com> 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.