std::basic_iostream::swap
Da cppreference.com
< cpp | io | basic iostream
![]() |
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. |
protected: void swap( basic_iostream& other ); |
(desde 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.
[editar] Parâmetros
other | - | another stream to exchange the state with |
[editar] Valor de retorno
*this