[Insight-users] STL vector iterator
salah
salah at gris.uni-tuebingen.de
Wed Aug 11 10:38:13 EDT 2004
Hello,
I am using two iterators to point to two different positions on an STL
vector. I want to decide which iterator is advancing more that the other.
is it meaningful to just compare the two iterator? i.e. something like this
typedef std::vector< ...... > VectorType;
VectorType::iterator iter1, iter2;
....
....
if (iter1 < iter2) {
....
....
}
or something else is needed. This comparison does not seem
to work by me.
Thanks,
Zein
More information about the Insight-users
mailing list