Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
swap
template<class T>
void swap(T& x, T& y);
The template function leaves the value originally stored in y subsequently stored in x, and the value originally stored in x subsequently stored in y.