std::swap(std::tuple)
From cppreference.com
Template:cpp/utility/tuple/sidebar Template:ddcl list begin <tr class="t-dcl ">
<td >template< class... Types >
void swap( tuple<Types...>& lhs, tuple<Types...>& rhs );
</td>
void swap( tuple<Types...>& lhs, tuple<Types...>& rhs );
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end
Swaps the contents of lhs
and rhs
. Equivalent to lhs.swap(rhs).
Contents |
Parameters
lhs, rhs | - | tuples whose contents to swap |
Return value
(none)
Exceptions
noexcept specification:
noexcept(noexcept(lhs.swap(rhs)))