std::vector<bool,Allocator>::swap (3) - Linux Manuals
std::vector<bool,Allocator>::swap: std::vector<bool,Allocator>::swap
NAME
std::vector<bool,Allocator>::swap - std::vector<bool,Allocator>::swap
Synopsis
Defined in header <vector>
static void swap(reference x, reference y);
Swaps the contents of x and y.
Parameters
x - std::vector<bool>::reference value to swap with y
y - std::vector<bool>::reference value to swap with x
Return value
(none)
Complexity
Constant.
Example
// Run this code
Output:
See also
reference (class)
swap (public member function of std::vector<T,Allocator>)
std::swap(std::vector) (function template)