mickey
17th March 2006, 18:59
Hello,
I have a prob.
vector<Some> some(10);
vector<Some>::iterator ii;
vector<Some>::iterator cc;
assuming that ii is at the last element of some I need to do:
cc=ii+1 //I'm out
if (cc <= some.size()) ....
In other words i need to know when ii+1 is an iterator more large of 10 (number of elements of verctor)
Thanks
I have a prob.
vector<Some> some(10);
vector<Some>::iterator ii;
vector<Some>::iterator cc;
assuming that ii is at the last element of some I need to do:
cc=ii+1 //I'm out
if (cc <= some.size()) ....
In other words i need to know when ii+1 is an iterator more large of 10 (number of elements of verctor)
Thanks