std::basic_ios::init – cppreference.com
Aus cppreference.com
<metanoindex/>
<tbody> </tbody>
|
|
||
Legt den zugehörigen Stream Puffer sb und initialisiert den internen Zustand .
Original:
Sets the associated stream buffer to sb and initializes the internal state.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Die Nachbedingungen sind wie folgt:
Original:
The postconditions are as follows:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
| Element | Value |
|---|---|
rdbuf() |
sb
|
tie() |
NULL |
rdstate() |
goodbit if sb is not NULL, otherwise badbit
|
exceptions() |
goodbit
|
| flags() | skipws | dec
|
| width() | 0
|
| precision() | 6
|
fill() |
widen(' ')
|
| getloc() | a copy of the value returned by std::locale()
|
Diese Memberfunktion geschützt ist: Es wird von den Konstruktoren der abgeleiteten Stream-Klassen genannt std::basic_istream und std::basic_ostream einmal die zugehörige Strompuffers bekannt ist. Bis diese Funktion aufgerufen wird, ruft jedes Mitglied Funktion (andere als die destructor) der default-konstruiert std::basic_ios undefiniertem Verhalten. Beachten Sie, dass basic_ios eine virtuelle Basisklasse ist, und daher seinen Konstruktor wird von den Konstruktoren der direkt abgeleiteten Klassen, weshalb zweistufigen Initialisierung ist notwendig bezeichnet .
Original:
This member function is protected: it is called by the constructors of the derived stream classes std::basic_istream and std::basic_ostream once the associated stream buffer is known. Until this function is called, every member function (other than the destructor) of the default-constructed std::basic_ios invokes undefined behavior. Note that basic_ios is a virtual base class, and therefore its constructor is not called by the constructors of those directly derived classes, which is why two-stage initialization is necessary.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Parameter
| sb | - | Strompuffers zu verknüpfen Original: stream buffer to associate to The text has been machine-translated via Google Translate. |
Siehe auch
Baut das Objekt Original: constructs the object The text has been machine-translated via Google Translate. (öffentliche Elementfunktion) [edit] | |