◐ Shell
clean mode source ↗

std::basic_string::swap - cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

void swap( basic_string& other );

Trocas o conteúdo da corda com os de other. Todos os iteradores e referências permanecem válido.

Original:

Exchanges the contents of the string with those of other. All iterators and references remain valid.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parâmetros

other -

string para trocar o conteúdo com

Original:

string to exchange the contents with

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Valor de retorno

(Nenhum)

Original:

(none)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Exemplo

Complexidade

constante

Original:

constant

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.