Great, more iterator trouble.
First we have an iterator of any value. I want to make a second iterator that starts one higher than the first one. Look-see:
for( iterator_type one ; /*...*/)
{
for( iterator_type two = one + 1 ; /*...*/)
{
/*...*/
}
}
That's the gist, but I know this way doesn't work. How would I do it? I would try the ++ operator on one instead of one + 1
, but wouldn't that change the value of one?
Any help is appreciated.