C++ examples for STL Algorithm:swap
Click the following links for the tutorial for STL Algorithm and swap.