swap

Swaps the first argument with the second argument.

  template <class Key, class T, class Compare, class Allocator>
  void swap
  (map<Key,T,Compare,Allocator>& x,
  map<Key,T,Compare,Allocator>& y);