Home
C++
Bitset
Class
Console
Data Structure
Data Type
Deque
Development
File
Function
Generic
Language
List
Map Multimap
Overload
Pointer
Qt
Queue Stack
Set Multiset
STL Algorithms Binary search
STL Algorithms Heap
STL Algorithms Helper
STL Algorithms Iterator
STL Algorithms Merge
STL Algorithms Min Max
STL Algorithms Modifying sequence operations
STL Algorithms Non modifying sequence operations
STL Algorithms Sorting
STL Basics
String
Valarray
Vector
swap « STL Algorithms Modifying sequence operations « C++
C++
STL Algorithms Modifying sequence operations
swap
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