std::ios_base::ios_base
Aus 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> public: ios_base( const ios_base& ) = delete; |
(1) | |
protected: ios_base(); |
(2) | |
1)
Die Kopie constuctor gelöscht: Streams sind nicht kopierbar
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.
2)
Der Standardkonstruktor ist geschützt: Nur abgeleitete Klassen können
std::ios_base konstruieren. Der innere Zustand ist nach dem Bau undefiniert. Die abgeleitete Klasse muss basic_ios::init() rufen, um die Initialisierung vor dem ersten Gebrauch oder vor destructor abzuschließen, da sonst das Verhalten undefiniert ist .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.
Notes
Das gleiche gilt für die Konstrukteure der nächsten Klasse in der I / O-Hierarchie, std::basic_ios. Weitere abgeleitete Klassen (std::istream und std::ostream) werden immer mit einem konkreten streambuffer Objekt und rufen basic_ios::init() gebaut, möglicherweise mehr als einmal, um die Initialisierung ihrer virtuellen Basis abzuschließen .
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.