I have a linked list of objects where each object has a linked list of char.
I declared three iterators:
top = someList.begin();
middle = top++;
bottom = middle++;
When I print the list of each of those iterators, it doesn't match up with what the full list looks like.
Basically by the end of those declaration statements top becomes the middle row, middle is what its meant to be and bottom becomes what the top row is meant to be.
I am assuming it's the way I declare the iterators with the increments. Any help is much appreciated.
top++and nottop+1? Similarlymiddle++and notmiddle+1?middle = std::next(top).