Namespaces
Variants
Views
Actions

std::swap(std::tuple)

From cppreference.com
< cpp‎ | utility‎ | tuple
Revision as of 21:56, 19 April 2012 by P12bot (Talk | contribs)

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>

<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)))

See also