swap
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
.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
.