cpp/io/basic filebuf/swap2 : Différence entre versions
De cppreference.com
< cpp | io | basic filebuf
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_filebuf)</small>}} | {{cpp/title | swap<small>(std::basic_filebuf)</small>}} | ||
{{cpp/io/basic_filebuf/navbar}} | {{cpp/io/basic_filebuf/navbar}} | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| =c++11 | |
template< class CharT, class Traits > | template< class CharT, class Traits > | ||
void swap(std::basic_filebuf<CharT, Traits>& lhs, | void swap(std::basic_filebuf<CharT, Traits>& lhs, | ||
std::basic_filebuf<CharT, Traits>& rhs); | std::basic_filebuf<CharT, Traits>& rhs); | ||
}} | }} | ||
− | {{ | + | {{end}} |
− | {{tr|Surcharges l'algorithme {{ | + | {{tr|Surcharges l'algorithme {{|std::swap}} pour {{|std::basic_filebuf}}. Les échanges de l'état de {{tt|lhs}} avec celle de {{tt|rhs}}. Appelle effectivement {{c|lhs.swap(rhs)}} .|Overloads the {{|std::swap}} algorithm for {{|std::basic_filebuf}}. Exchanges the state of {{tt|lhs}} with that of {{tt|rhs}}. Effectively calls {{c|lhs.swap(rhs)}}.}} |
===Paramètres=== | ===Paramètres=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| lhs, rhs |{{tr| {{|std::basic_filebuf}} objets dont les États à échanger| {{|std::basic_filebuf}} objects whose states to swap}}}} |
− | {{ | + | {{end}} |
===Retourne la valeur=== | ===Retourne la valeur=== | ||
Ligne 27 : | Ligne 27 : | ||
===Voir aussi=== | ===Voir aussi=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| cpp/io/basic_filebuf/swap}} |
− | {{ | + | {{| cpp/algorithm/swap}} |
− | {{ | + | {{end}} |
[[de:cpp/io/basic filebuf/swap2]] | [[de:cpp/io/basic filebuf/swap2]] |
Version actuelle en date du 2 juillet 2013 à 04:57
![]() |
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 CharT, class Traits > void swap(std::basic_filebuf<CharT, Traits>& lhs, |
(depuis C++11) | |
Surcharges l'algorithme std::swap pour std::basic_filebuf. Les échanges de l'état de
lhs
avec celle de rhs
. Appelle effectivement lhs.swap(rhs) .Original:
Overloads the std::swap algorithm for std::basic_filebuf. Exchanges the state of
lhs
with that of rhs
. Effectively 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 | - | std::basic_filebuf objets dont les États à échanger
Original: std::basic_filebuf objects whose states 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] Exemple
This section is incomplete Reason: no example |
[modifier] Voir aussi
(C++11) |
swaps de deux objets basic_filebuf Original: swaps two basic_filebuf objects 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) |
échange les valeurs de deux objets Original: swaps the values of two objects The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction générique) |