◐ Shell
clean mode source ↗

std::basic_ios::set_rdbuf - cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

protected: void set_rdbuf( std::basic_streambuf<CharT,Traits>* sb );

Define o buffer de fluxo associado para sb sem limpar seu estado de erro.

Original:

Sets the associated stream buffer to sb without clearing its error state.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Essa função membro é protegido: ele é chamado pelos construtores movimento dos fluxos de derivados como std::basic_ofstream ou std::basic_istringstream, como a etapa final depois de construir a classe base e depois de mover o buffer de fluxo: só a classe corrente derivada mais sabe como mover corretamente o buffer de fluxo, mas std::basic_ios precisa estar ciente da nova localização do fluxo, de modo que suas funções de membro público pode acessá-lo.

Original:

This member function is protected: it is called by the move constructors of the derived streams such as std::basic_ofstream or std::basic_istringstream, as the final step after constructing the base class and after moving the stream buffer: only the most derived stream class knows how to correctly move the stream buffer, but std::basic_ios needs to be made aware of the stream's new location so that its public member functions can access it.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parâmetros

sb -

buffer de fluxo para associar

Original:

stream buffer to associate to

The 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.

Exceções

(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.

Exemplo

Veja também

administra buffer de fluxo associado

Original:

manages associated stream buffer

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(função pública membro) [edit]