std::swap(std::tuple)
From cppreference.com
Template:cpp/utility/tuple/sidebar Template:ddcl list begin <tr class="t-dcl ">
<td class="t-dcl-nopad">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 class="t-dcl-nopad"> </td> </tr> Template:ddcl list end
Swaps the contents of lhs
and rhs
. Equivalent to Template:cpp.
Contents |
Parameters
lhs, rhs | - | tuples whose contents to swap |
Return value
Exceptions
noexcept specification:
noexcept(noexcept(lhs.swap(rhs)))