◐ Shell
clean mode source ↗

std::basic_ios::tie - 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>

std::basic_ostream<CharT,Traits>* tie() const;

(1)

std::basic_ostream<CharT,Traits>* tie( std::basic_ostream<CharT,Traits>* str );

(2)

Gestisce il flusso legato. Un flusso legato è un flusso di uscita che è sincronizzato con la sequenza controllata dal buffer del flusso (rdbuf()), che è, è chiamato flush() sul flusso legato prima di qualsiasi input / output sul *this.

Original:

Manages the tied stream. A tied stream is a output stream which is synchronized with the sequence controlled by the stream buffer (rdbuf()), that is, flush() is called on the tied stream before any input/output operation on *this.

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

1)

Restituisce il flusso corrente legata. Se non c'è flusso legato, NULL viene restituito.

Original:

Returns the current tied stream. If there is no tied stream, NULL is returned.

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

2)

Consente di impostare il flusso di corrente legata alla str. Restituisce il flusso legato prima dell'operazione. Se non c'è flusso legato, NULL viene restituito.

Original:

Sets the current tied stream to str. Returns the tied stream before the operation. If there is no tied stream, NULL is returned.

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

Parametri

str -

un flusso di output per impostare il flusso legato

Original:

an output stream to set as the tied stream

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

Il flusso legato, o NULL se non ci fosse alcun flusso legato.

Original:

The tied stream, or NULL if there was no tied stream.

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.

Note

Per impostazione predefinita, i flussi standard cin, cerr e clog sono legati a cout. Allo stesso modo, le loro controparti a livello wcin, wcerr e wclog sono legate a wcout.

Original:

By default, the standard streams cin, cerr and clog are tied to cout. Similarly, their wide counterparts wcin, wcerr and wclog are tied to wcout.

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

Esempio