iter_swap « STL Algorithms Modifying sequence operations « C++






1.Use iterators to swap elements at locations 0 and 1 of an array
2.Swap first and second value with iter_swap