template< class... Types > void swap( tuple<Types...>& lhs, tuple<Types...>& rhs ) noexcept(/* see below */); | (since C++11) (until C++20) | |
template< class... Types > constexpr void swap( tuple<Types...>& lhs, tuple<Types...>& rhs ) noexcept(/* see below */); | (since C++20) |
Swaps the contents of lhs
and rhs
. Equivalent to lhs.swap(rhs)
.
This function does not participate in overload resolution unless | (since C++17) |
lhs, rhs | - | tuples whose contents to swap |
(none).
noexcept
specification: noexcept(noexcept(lhs.swap(rhs)))
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/utility/tuple/swap2