Various funstions are included for debugging the list class.
All assign methods (including operator=) invalidate all iterators.
No iterators are invalidated.
Only the iterators to the erased elements are invalidated.
No iterators are invalidated.
Only the iterators to the erased elements are invalidated.
Only the iterators to the erased elements are invalidated.
Invalidates all iterators.
Iterators remain valid, but they now point into the swapped container.
Iterators remain valid, but iterators into the argument list now point into this.