iter_swap

C++ Reference

iter_swap
Syntax:
  #include <algorithm>
  inline void iter_swap( iterator a, iterator b );

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

 swap( *a, *b );                

would.

Related topics: