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).
noexcept specification: | (until C++17) |
noexcept specification: noexcept( | (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