◐ Shell
clean mode source ↗

std::basic_ios::set_rdbuf - 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 set_rdbuf( std::basic_streambuf<CharT,Traits>* sb );

Consente di impostare il buffer associato al flusso sb senza cancellare il suo stato di errore.

Original:

Sets the associated stream buffer to sb without clearing its error state.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Questa funzione membro è protetta: viene chiamato dai costruttori movimento dei flussi derivati, come std::basic_ofstream o std::basic_istringstream, come fase finale, dopo la costruzione della classe di base e dopo aver spostato il buffer del flusso: solo la classe più derivata flusso sa come muoversi correttamente buffer del flusso, ma std::basic_ios ha bisogno di essere a conoscenza della nuova sede del flusso in modo che le sue funzioni membro pubbliche possono accedere.

Original:

This member function is protected: it is called by the move constructors of the derived streams such as std::basic_ofstream or std::basic_istringstream, as the final step after constructing the base class and after moving the stream buffer: only the most derived stream class knows how to correctly move the stream buffer, but std::basic_ios needs to be made aware of the stream's new location so that its public member functions can access it.

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.

Valore di ritorno

(Nessuno)

Original:

(none)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Eccezioni

(Nessuno)

Original:

(none)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Esempio

Vedi anche

gestisce buffer del flusso associato

Original:

manages associated stream buffer

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]