cpp/string/basic string/swap2 : Différence entre versions
De cppreference.com
< cpp | string | basic string
m (r2.7.3) (robot Ajoute : de, en, es, it, ja, pt, ru, zh) |
m (Use {{lc}}. Update links. Various fixes.) |
||
Ligne 2 : | Ligne 2 : | ||
{{cpp/title | swap<small>(std::basic_string)</small>}} | {{cpp/title | swap<small>(std::basic_string)</small>}} | ||
{{cpp/string/basic_string/navbar}} | {{cpp/string/basic_string/navbar}} | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| |
template< class T, class Alloc > | template< class T, class Alloc > | ||
void swap( basic_string<T,Alloc> &lhs, basic_string<T,Alloc> &rhs ); | void swap( basic_string<T,Alloc> &lhs, basic_string<T,Alloc> &rhs ); | ||
}} | }} | ||
− | {{ | + | {{end}} |
− | {{tr|Spécialisé l'algorithme {{ | + | {{tr|Spécialisé l'algorithme {{|std::swap}} pour {{|std::basic_string}}. Swaps le contenu de {{tt|lhs}} et {{tt|rhs}}. Appels {{c|lhs.swap(rhs)}} .|Specializes the {{|std::swap}} algorithm for {{|std::basic_string}}. Swaps the contents of {{tt|lhs}} and {{tt|rhs}}. Calls {{c|lhs.swap(rhs)}}.}} |
===Paramètres=== | ===Paramètres=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| lhs, rhs |{{tr| chaînes dont le contenu à échanger| strings whose contents to swap}}}} |
− | {{ | + | {{end}} |
===Retourne la valeur=== | ===Retourne la valeur=== | ||
Ligne 23 : | Ligne 23 : | ||
===Voir aussi=== | ===Voir aussi=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| cpp/string/basic_string/swap}} |
− | {{ | + | {{end}} |
[[de:cpp/string/basic string/swap2]] | [[de:cpp/string/basic string/swap2]] |
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. |
template< class T, class Alloc > void swap( basic_string<T,Alloc> &lhs, basic_string<T,Alloc> &rhs ); |
||
Spécialisé l'algorithme std::swap pour std::basic_string. Swaps le contenu de
lhs
et rhs
. Appels lhs.swap(rhs) .Original:
Specializes the std::swap algorithm for std::basic_string. Swaps the contents of
lhs
and rhs
. Calls lhs.swap(rhs).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 |
[modifier] Paramètres
lhs, rhs | - | chaînes dont le contenu à échanger
Original: strings whose contents to swap The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifier] 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.
[modifier] 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.
[modifier] Voir aussi
permute les contenus Original: swaps the contents The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) |