>Hi,
>
[quoted text clipped - 5 lines]
>itr+=3. But as the += is not defined for that iterator class, I cant do
>that. What should I do?
Look into std::advance. It can handle any iterator type and will repeatedly
increment non-random access iterators as necessary. The operator isn't
provided for non-random access iterators to emphasize that increment values
> 1 aren't as simple and efficient as pointer arithmetic.

Signature
Doug Harrison
Visual C++ MVP
Abubakar - 13 Dec 2006 17:59 GMT
Wow, pretty cool. Thanks :)
-ab.
>>Hi,
>>
[quoted text clipped - 14 lines]
> values
>> 1 aren't as simple and efficient as pointer arithmetic.