Namespaces
Variants
Views
Actions

std::swap(std::tuple)

From cppreference.com
< cpp‎ | utility‎ | tuple
Revision as of 11:58, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<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:  (since C++11)
noexcept(noexcept(lhs.swap(rhs)))

See also