swap « STL Algorithms Modifying sequence operations « C++






1.Illustrating the generic swap algorithm: swap two integers
2.Illustrating the generic swap algorithm
3.Swap elements at locations 0 and 1 of an array
4.Swap second and fourth element in a vector