The function swap is used to exchange values from two locations.
template<class T> void swap(T& a, T& b);
There is no return.