std::basic_ios::init
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. |
protected: void init(std::basic_streambuf<CharT,Traits>* sb ); | ||
Définit le tampon de flux associé à
sb
et initialise l'état interne .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.
You can help to correct and verify the translation. Click here for instructions.
Les post-conditions sont les suivantes:
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.
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() |
Cette fonction membre est protégé: il est appelé par les constructeurs des classes de flux dérivés std::basic_istream et std::basic_ostream une fois que le tampon de flux associé est connu. Jusqu'à ce que cette fonction est appelée, chaque fonction membre (autre que le destructeur) de la std::basic_ios par défaut construit invoque un comportement indéfini. Notez que
basic_ios
est une classe de base virtuelle, et donc de son constructeur n'est pas appelé par les constructeurs de ces classes directement dérivées, ce qui explique pourquoi deux étapes d'initialisation est nécessaire .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.
You can help to correct and verify the translation. Click here for instructions.
[modifier]Paramètres
sb | - | tampon de flux d'associer à Original: stream buffer to associate to The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifier]Voir aussi
Construit l'objet Original: constructs the object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) |