Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/algorithm/swap"

From cppreference.com
< cpp‎ | algorithm
m (Text replace - "{{params}}" to "===Parameters===")
m (Text replace - "{{returns}}" to "===Return value===")
Line 18: Line 18:
  
 
<!-- ======== -->
 
<!-- ======== -->
{{returns}}
+
===Return value===
 
{{return none}}
 
{{return none}}
  

Revision as of 17:47, 2 August 2011

Template:cpp/algorithm/sidebar Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <algorithm>
</td>

<td></td> <td></td> </tr> <tr class="t-dcl ">

<td class="t-dcl-nopad">
template< class Assignable >
void swap( Assignable& a, Assignable& b );
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

Swaps the given values a and b.

Parameters

a, b - the values to be swapped

Return value

Template:return none

Template:example cpp

Template:complex Template:complex constant

Template:see also

Template:cpp/algorithm/dcl list copyTemplate:cpp/algorithm/dcl list iter swapTemplate:cpp/algorithm/dcl list swap ranges