◐ Shell
clean mode source ↗

std::basic_filebuf::overflow - 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: virtual int_type overflow ( int_type c = Traits::eof() );

Si comporta come il std::basic_streambuf::overflow classe di base, salvo che per scrivere i dati dall'area di messa alla sequenza di caratteri associata (al file), utilizza prima

codecvt::out()

del locale imbevuta per convertire i caratteri in esterno (possibilmente multibyte) rappresentazione, memorizzata in un buffer temporaneo (allocato grande quanto necessario), quindi utilizza file di I / O per copiare tutti completamente convertiti byte nel file.

Original:

Behaves like the base class std::basic_streambuf::overflow, except that to write the data from the put area to the associated character sequence (to the file), first uses

codecvt::out()

of the imbued locale to convert the characters into external (possibly multibyte) representation, stored in a temporary buffer (allocated as large as necessary), then uses file I/O to copy all fully-converted bytes into the file.

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

Se la conversione non riesce con std::codecvt_base::error, restituisce Traits::eof() senza tentare alcun output.

Original:

If the conversion fails with std::codecvt_base::error, returns Traits::eof() without attempting any output.

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

Se il file associato non è aperto (is_open()==false, restituisce Traits::eof() prima di fare qualsiasi cosa.

Original:

If the associated file is not open (is_open()==false, returns Traits::eof() before doing anything.

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

Parametri

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

Valore di ritorno

Traits::not_eof(c) per indicare il successo o Traits::eof() per indicare l'errore.

Original:

Traits::not_eof(c) to indicate success or Traits::eof() to indicate failure.

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

scrive caratteri della sequenza di emissione associato dalla zona put

Original:

writes characters to the associated output sequence from the put area

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


(virtuale protetto funzione of std::basic_streambuf membro) [modifica]

legge dal file associato

Original:

reads from the associated file

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


(virtuale protetto funzione membro) [modifica]