Difference between revisions of "cpp/utility/tuple/swap2"
From cppreference.com
(Created page with "{{cpp/title | swap<small>(std::tuple)</small>}} {{cpp/utility/tuple/sidebar}} {{ddcl list begin}} {{ddcl list item | template< class... Types > void swap( tuple<Types...>& lhs, t...") |
m (Text replace - "{{return none}}" to "(none)") |
||
Line 16: | Line 16: | ||
===Return value=== | ===Return value=== | ||
− | + | (none) | |
===Exceptions=== | ===Exceptions=== |
Revision as of 13:40, 11 October 2011
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
(none)
Exceptions
noexcept specification:
noexcept(noexcept(lhs.swap(rhs)))