Hello,
I have a prob.
vector<Some> some(10);
vector<Some>::iterator ii;
vector<Some>::iterator cc;
vector<Some> some(10);
vector<Some>::iterator ii;
vector<Some>::iterator cc;
To copy to clipboard, switch view to plain text mode
assuming that ii is at the last element of some I need to do:
cc=ii+1 //I'm out
if (cc <= some.size()) ....
cc=ii+1 //I'm out
if (cc <= some.size()) ....
To copy to clipboard, switch view to plain text mode
In other words i need to know when ii+1 is an iterator more large of 10 (number of elements of verctor)
Thanks
Bookmarks