Difference between revisions of "cpp/container/vector bool/swap"
From cppreference.com
< cpp | container | vector bool
m (Text replace - "{{cpp|" to "{{c|") |
m (Text replace - "/sidebar" to "/navbar") |
||
Line 1: | Line 1: | ||
{{cpp/container/vector_bool/title | swap}} | {{cpp/container/vector_bool/title | swap}} | ||
− | {{cpp/container/vector_bool/ | + | {{cpp/container/vector_bool/navbar}} |
{{ddcl | header=vector | | {{ddcl | header=vector | | ||
static void swap(reference x, reference y); | static void swap(reference x, reference y); |
Revision as of 12:30, 15 June 2012
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)
See also
proxy class representing a reference to a single bool (class) |