Defined in header <algorithm> template< class ForwardIt1, class ForwardIt2 >
void iter_swap( ForwardIt1 a, ForwardIt2 b );
Swaps the values of the elements the given iterators are pointing to.
Parameters
a, b - iterators to the elements to swap Type requirements - ForwardIt1, ForwardIt2 must meet the requirements of ForwardIterator. - *a, *b must meet the requirements of Swappable.
Return value
(none).
Complexity
constant.
Possible implementat