◐ Shell
clean mode source ↗

std::basic_ios::init - cppreference.com

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.

Click here for the English version of this page

<metanoindex/>

<tbody> </tbody>

protected: void init( std::basic_streambuf<CharT,Traits>* sb );

Consente di impostare il buffer associato al flusso sb e inizializza lo stato interno.

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.

Le post sono i seguenti:

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()

Questa funzione membro è protetta: viene chiamato dai costruttori delle classi derivate flusso std::basic_istream std::basic_ostream e una volta che il buffer del flusso associato è noto. Fino a quando questa funzione viene chiamata, ogni funzione membro (diverso il distruttore) della std::basic_ios default-costruito richiama un comportamento indefinito. Si noti che basic_ios è una classe base virtuale, e quindi il suo costruttore non viene chiamato dai costruttori di queste classi direttamente derivati, ed è per questo in due fasi di inizializzazione è necessario.

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.

Parametri

sb -

buffer del flusso di associare a

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.

Vedi anche

Costruisce l'oggetto

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.


(metodo pubblico) [modifica]