Namespaces
Variants
Views
Actions

std::basic_string::swap

From cppreference.com
< cpp‎ | string‎ | basic string
Revision as of 10:51, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
std::basic_string
 
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

Complexity

constant