std::basic_iostream::swap
Da cppreference.com.
< cpp | io | basic iostream
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
protected: void swap( basic_iostream& other ); | (dal C++11) | |
Exchanges the state with another input/output stream object. Effectively calls basic_istream<CharT,Traits>::swap(other).
This member function is protected: it is called by the swap member functions of the derived stream classes std::basic_stringstream and std::basic_fstream, which know how to correctly swap the associated stream buffers.
[modifica]Parametri
other | - | another stream to exchange the state with |
[modifica]Valore di ritorno
*this