This is a discussion on Linked lists within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by mixalissen
Actually the above code is REALLY wrong...with *iter + 1 or *iter++ you dont move the ...
Actually the above code is REALLY wrong...with *iter + 1 or *iter++ you dont move the iterator, you just increment the value of the element by 1. SO WRONG...
No. *iter++ dereferences the iterator and post-increments it. It does move the iterator.