Description
swap_ranges() swaps elements in the two specified iterator ranges.
Declaration
template <class For, class For2> For2 swap_ranges(For, For, For2);
Concept
In the sample program, two integer vectors are set up, and then their contents are swapped. The output of the program is:
1 3 2 4 2 4 1 3
Supported
Supported
Supported