Namespaces
Variants
Views
Actions

std::iter_swap

From cppreference.com
< cpp‎ | algorithm
Revision as of 16:09, 6 May 2011 by WikiSysop (Talk | contribs)

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

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 ForwardIterator1, class ForwardIterator2 >
void iter_swap( ForwardIterator1 a, ForwardIterator2 b );
</td>

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

Swaps the values of the elements the given iterators are pointing to.

Template:params

a, b - iterators to the elements to swap

Template:returns Template:return none

Template:complex

constant

Template:eq fun cpp Template:example cpp

Template:see also

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