std::basic_string::swap — cppreference.com
De cppreference.com
<metanoindex/>
<tbody> </tbody>
|
|
||
Échanges le contenu de la chaîne avec ceux de other. Tous les itérateurs et des références restent valables .
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.
Paramètres
| other | - | chaîne d'échanger du contenu avec Original: string to exchange the contents with The text has been machine-translated via Google Translate. |
Retourne la valeur
(Aucun)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Exemple
Complexité
constant
Original:
constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.