slist

Various funstions are included for debugging the slist class.

assign

All assign methods (including operator=) invalidate all iterators.

push_front/back

No iterators are invalidated.

pop_front/back

Only the iterators to the erased elements are invalidated.

insert

No iterators are invalidated.

erase

Only the iterators to the erased elements are invalidated.

resize

Only the iterators to the erased elements are invalidated.

clear

Invalidates all iterators.

swap

Iterators remain valid, but they now point into the swapped container.

splice,splice_after,merge

Iterators remain valid, but iterators into the argument list now point into this.

Remarks

Incrementing end() is not an error, it gives you begin().