std::swap
From Cppreference
Defined in header
<algorithm> | ||
template< class Assignable >
void swap( Assignable& a, Assignable& b ); | ||
Swaps the given values a and b.
Contents |
Parameters
a, b | - | the values to be swapped |
Return value
(none)
Example
This section is incomplete |
Complexity
constant
See also
| copies some range of elements to a new location (function template) | |
| swaps the elements pointed to by two iterators (function template) | |
| swaps two ranges of elements (function template) |