S
subramanian100in
Suppose 'a' and 'b' are input iterators.
In the ISO/IEC 14882:2003 document, in section '24.1.1 Input
Iterators' in page 517, item 3 (below table 72) mentions the
following:
For input iterators 'a and 'b', 'a == b' does not imply '++a == ++b'.
I am unable to understand this sentence. Kindly give an example where,
for two input iterators 'a' and 'b', we have 'a == b' holds good but '+
+a' is not equal to '++b'. I am unable to come with an example to
understand this sentence in the standard document.
Kindly explain.
Thanks
V.Subramanian
In the ISO/IEC 14882:2003 document, in section '24.1.1 Input
Iterators' in page 517, item 3 (below table 72) mentions the
following:
For input iterators 'a and 'b', 'a == b' does not imply '++a == ++b'.
I am unable to understand this sentence. Kindly give an example where,
for two input iterators 'a' and 'b', we have 'a == b' holds good but '+
+a' is not equal to '++b'. I am unable to come with an example to
understand this sentence in the standard document.
Kindly explain.
Thanks
V.Subramanian