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.
このブラウザーはサポートされなくなりました。
Microsoft Edge にアップグレードすると、最新の機能、セキュリティ更新プログラム、およびテクニカル サポートを利用できます。
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.