Namespaces
Variants
Views
Actions

std::swap(std::tuple)

From cppreference.com
< cpp‎ | utility‎ | tuple
Revision as of 18:32, 30 August 2011 by Cubbi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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>

<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

Template:return none

Exceptions

noexcept specification:  
noexcept(noexcept(lhs.swap(rhs)))

See also