void swap(pair& other); | (since C++11) |
Swaps first
with other.first
and second
with other.second
.
This function does not participate in overload resolution unless | (since C++17) |
other | - | pair of values to swap |
(none).
(until C++17) | |
noexcept specification: noexcept( std::is_nothrow_swappable<first_type>::value) && std::is_nothrow_swappable<second_type>::value) ) | (since C++17) |
swaps the values of two objects (function template) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/utility/pair/swap