std::ios_base::ios_base
Da 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. |
public: ios_base( const ios_base& ) = delete; |
(1) | |
protected: ios_base(); |
(2) | |
O construtor de cópia é apagado: fluxos não são copiável
2) Original:
The copy constuctor is deleted: streams are not copyable
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.
O construtor padrão é protegido: apenas as classes derivadas pode construir
std::ios_base
. O estado interno é indefinido após a construção. A classe derivada deve chamar basic_ios::init() para concluir a inicialização antes da primeira utilização ou antes destruidor, caso contrário, o comportamento é indefinido.Original:
The default constructor is protected: only derived classes may construct
std::ios_base
. The internal state is undefined after the construction. The derived class must call basic_ios::init() to complete initialization before first use or before destructor, otherwise the behavior is undefined.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.
[editar] Notas
O mesmo se aplica para os construtores da classe seguinte na hierarquia de I / O, std::basic_ios. Além disso derivadas de classes (std::istream e std::ostream) são sempre construídos com um objeto concreto e streambuffer basic_ios::init() chamada, possivelmente mais do que uma vez, para concluir a inicialização de sua base virtual.
Original:
The same applies to the constructors of the next class in the I/O hierarchy, std::basic_ios. Further-derived classes (std::istream and std::ostream) are always constructed with a concrete streambuffer object and call basic_ios::init(), possibly more than once, to complete initialization of their virtual base.
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.