Standard C++ Library
Copyright 1998, Rogue Wave Software, Inc.
swap
- Exchanges values.
#include <algorithm>
template <class T>
void swap (T& a, T& b);
The swap algorithm exchanges the values of a and b. The
effect is:
T tmp = a
a = b
b = tmp
iter_swap, swap_ranges