std::basic_ios::swap
De cppreference.com
|
|
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. |
<metanoindex/>
<tbody> </tbody> protected: void swap( basic_ios& other ); |
(desde C++11) | |
Troca os estados de
*this e other, exceto para os objetos rdbuf associados. rdbuf() e other.rdbuf() retorna os mesmos valores de antes da chamada.Original:
Exchanges the states of
*this and other, except for the associated rdbuf objects. rdbuf() and other.rdbuf() returns the same values as before the call.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.
Esta função swap é protegido: chama-se pelas funções de swap membros das classes de fluxo derivados como std::basic_ofstream ou std::basic_istringstream, que sabe como fazer corretamente trocar os streambuffers associados.
Original:
This swap function is protected: it is called by the swap member functions of the derived stream classes such as std::basic_ofstream or std::basic_istringstream, which know how to correctly swap the associated streambuffers.
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.
Parâmetros
| other | - | o objeto
basic_ios para trocar o estado comOriginal: the basic_ios object to exchange the state withThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Valor de retorno
(Nenhum)
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.
Exceções
Veja também
move-se de um outro std::basic_ios excepto rdbufOriginal: moves from another std::basic_ios except for rdbufThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (protegido função de membro) | |