Espaces de noms
Variantes
Affichages
Actions

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}}
{{ddcl list begin}}
+
{{begin}}
{{ddcl list item | notes={{mark since c++11}} |
+
{{| =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);
 
}}
 
}}
{{ddcl list end}}
+
{{end}}
  
{{tr|Surcharges l'algorithme {{c|std::swap}} pour {{c|std::basic_filebuf}}. Les échanges de l'état de {{tt|lhs}} avec celle de {{tt|rhs}}. Appelle effectivement {{c|lhs.swap(rhs)}} .|Overloads the {{c|std::swap}} algorithm for {{c|std::basic_filebuf}}. Exchanges the state of {{tt|lhs}} with that of {{tt|rhs}}. Effectively calls {{c|lhs.swap(rhs)}}.}}
+
{{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===
{{param list begin}}
+
{{begin}}
{{param list item | lhs, rhs |{{tr| {{c|std::basic_filebuf}} objets dont les États à échanger| {{c|std::basic_filebuf}} objects whose states to swap}}}}
+
{{| lhs, rhs |{{tr| {{|std::basic_filebuf}} objets dont les États à échanger| {{|std::basic_filebuf}} objects whose states to swap}}}}
{{param list end}}
+
{{end}}
  
 
===Retourne la valeur===
 
===Retourne la valeur===
Ligne 27 : Ligne 27 :
  
 
===Voir aussi===
 
===Voir aussi===
{{dcl list begin}}
+
{{begin}}
{{dcl list template | cpp/io/basic_filebuf/dcl list swap}}
+
{{| cpp/io/basic_filebuf/swap}}
{{dcl list template | cpp/algorithm/dcl list swap}}
+
{{| cpp/algorithm/swap}}
{{dcl list end}}
+
{{end}}
  
 
[[de:cpp/io/basic filebuf/swap2]]
 
[[de:cpp/io/basic filebuf/swap2]]

Version actuelle en date du 2 juillet 2013 à 04:57

 
 
D'entrée / sortie de bibliothèque
I / O manipulateurs
C-style I / O
Tampons
Original:
Buffers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_streambuf
basic_filebuf
basic_stringbuf
strstreambuf (obsolète)
Cours d'eau
Original:
Streams
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Abstractions
Original:
Abstractions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ios_base
basic_ios
basic_istream
basic_ostream
basic_iostream
Fichier E / O
Original:
File I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ifstream
basic_ofstream
basic_fstream
Chaîne I / O
Original:
String I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_istringstream
basic_ostringstream
basic_stringstream
Tableau I / O
Original:
Array I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
istrstream (obsolète)
ostrstream (obsolète)
strstream (obsolète)
Types
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
streamoff
streamsize
fpos
Interface catégorie d'erreur
Original:
Error category interface
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iostream_category (C++11)
io_errc (C++11)
 
std::basic_filebuf
Fonctions membres publiques
Original:
Public member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_filebuf::basic_filebuf
basic_filebuf::~basic_filebuf
basic_filebuf::operator= (C++11)
basic_filebuf::swap (C++11)
basic_filebuf::is_open
basic_filebuf::open
basic_filebuf::close
Protégé fonctions membres
Original:
Protected member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_filebuf::showmanyc
basic_filebuf::underflow
basic_filebuf::uflow
basic_filebuf::pbackfail
basic_filebuf::overflow
basic_filebuf::setbuf
basic_filebuf::seekoff
basic_filebuf::seekpos
basic_filebuf::sync
basic_filebuf::imbue
Tiers fonctions
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
swap(std::basic_filebuf) (C++11)
 
template< class CharT, class Traits >

void swap(std::basic_filebuf<CharT, Traits>& lhs,

          std::basic_filebuf<CharT, Traits>& rhs);
(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.

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.

[modifier] Exemple

[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) [edit]
é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) [edit]