swap

Changes the position of the first argument with the second argument.

  template <class T, class Allocator>
  void swap (list<T,Allocator>& x, list<T,Allocator>& y);