cpp/string/basic string/swap : Différence entre versions
De cppreference.com
< cpp | string | basic string
P12 (discuter | contributions) m (1 version : Translate from the English version) |
m (Use {{lc}}. Update links. Various fixes.) |
||
(Une révision intermédiaire par un utilisateur est masquée) | |||
Ligne 9 : | Ligne 9 : | ||
===Paramètres=== | ===Paramètres=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| other |{{tr| chaîne d'échanger du contenu avec| string to exchange the contents with}}}} |
− | {{ | + | {{end}} |
===Retourne la valeur=== | ===Retourne la valeur=== | ||
Ligne 25 : | Ligne 25 : | ||
{{tr|constant|constant}} | {{tr|constant|constant}} | ||
+ | |||
+ | |||
[[es:cpp/string/basic string/swap]] | [[es:cpp/string/basic string/swap]] | ||
+ | |||
[[ja:cpp/string/basic string/swap]] | [[ja:cpp/string/basic string/swap]] | ||
[[pt:cpp/string/basic string/swap]] | [[pt:cpp/string/basic string/swap]] | ||
[[ru:cpp/string/basic string/swap]] | [[ru:cpp/string/basic string/swap]] | ||
+ |
Version actuelle en date du 2 juillet 2013 à 05:47
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
void swap( basic_string& other ); |
||
É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.
You can help to correct and verify the translation. Click here for instructions.
Sommaire |
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. You can help to correct and verify the translation. Click here for instructions. |
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.
You can help to correct and verify the translation. Click here for instructions.
Exemple
This section is incomplete Reason: no example |
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.
You can help to correct and verify the translation. Click here for instructions.