iter_swap [C++ Reference]
Keywords: stl,algorithm,iter_swap
Date: 2009-10-09T02:25:57-0700

[[iter_swap]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- fr
- it
- jp
- pl
- ru
- tr

## iter_swap

Syntax:

        #include <algorithm>
        void iter_swap( forward_iterator a, forward_iterator b );

A call to iter_swap() exchanges the values of two elements exactly as a call to

       swap( *a, *b );

would.

Related Topics: swap, swap_ranges

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •