swap

The function swap is used to exchange values from two locations.

  template<class T> void swap(T& a, T& b);
  
Remarks

There is no return.