std::ios_base::ios_base
Da cppreference.com.
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
public: ios_base( const ios_base& ) = delete; | (1) | |
protected: ios_base(); | (2) | |
Il constuctor copia viene cancellato: i flussi non sono copiabili
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.
Il costruttore di default è protetto: solo le classi derivate possono
std::ios_base
costruire. Lo stato interno è definito dopo la costruzione. La classe derivata deve chiamare basic_ios::init() per completare l'inizializzazione prima del primo utilizzo o prima di distruttore, altrimenti il comportamento è indefinito.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.
[modifica] Note
Lo stesso vale per i costruttori della classe successiva del I / O gerarchia, std::basic_ios. Ulteriori classi derivate (std::istream e std::ostream) sono sempre costruiti con un oggetto streambuffer concreto e basic_ios::init() chiamata, possibilmente più di una volta, per completare l'inizializzazione della loro base virtuale.
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.