|
template< class T1, class T2 > void swap( pair<T1,T2>& lhs, pair<T1,T2>& rhs );
|
|
|
|
Swaps the contents of lhs
and rhs
. Equivalent to lhs.swap(rhs).
[edit] Parameters
lhs, rhs
|
-
|
pairs whose contents to swap
|
[edit] Return value
(none)
[edit] Exceptions
noexcept specification:
(since C++11)
|
noexcept(noexcept(x.swap(y)))
|
|
|
|
[edit] See also