std::basic_string<CharT,Traits,Allocator>::swap
From cppreference.com
void swap( basic_string& other ); |
||
Exchanges the contents of the string with those of other
. All iterators and references remain valid.
Contents |
Parameters
other | - | string to exchange the contents with |
Return value
(none)
Example
This section is incomplete Reason: no example |
Complexity
constant