I am programming in C++ for 4 years, so I am not a newbie but I am not a
very experienced programmer on standard C++ libary.
My question is this:
Can you tell me one case which an iterator is better than index?
For me (until now) iterators are very strangely objects because they are
useless for me.
But since most of members of containers use iterators, I am stumped.
I think, for using vector & map, index is far more useful than iterator.
very experienced programmer on standard C++ libary.
My question is this:
Can you tell me one case which an iterator is better than index?
For me (until now) iterators are very strangely objects because they are
useless for me.
But since most of members of containers use iterators, I am stumped.
I think, for using vector & map, index is far more useful than iterator.
Comment