std::basic_string::swap
Da cppreference.com.
<metanoindex/>
<tbody> </tbody> void swap( basic_string& other ); |
||
Scambia il contenuto della stringa con quelli di
other. Tutti gli iteratori e riferimenti rimangono validi.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.
You can help to correct and verify the translation. Click here for instructions.
Parametri
| other | - | stringa di scambiare i contenuti con
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. |
Valore di ritorno
(Nessuno)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Esempio
Complessità
costante
Original:
constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
