std::ios_base::ios_base
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. |
public: ios_base( const ios_base& ) = delete; |
(1) | |
protected: ios_base(); |
(2) | |
El Constuctor copia se borra: corrientes no son copiables
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.
El constructor por defecto es protegida: sólo las clases derivadas pueden
std::ios_base
construir. El estado interno está definido después de la construcción. La clase derivada debe llamar basic_ios::init() para completar la inicialización antes de usarlo por primera vez o antes del destructor, de lo contrario el comportamiento no está definido .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
Lo mismo se aplica a los constructores de la clase siguiente en la jerarquía de E / S, std::basic_ios. Además las clases derivadas de (std::istream y std::ostream) siempre se construyen con un objeto streambuffer hormigón y basic_ios::init() llamada, posiblemente más de una vez, para completar la inicialización de su 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.