std::basic_streambuf::pubsync, std::basic_streambuf::sync
![]() | 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. |
int pubsync(); | (1) | |
protected: virtualint sync(); | (2) | |
Synchronizes the controlled character sequence (the buffers) with the associated character sequence.
1)sync()
della classe più derivatasync()
of the most derived classYou can help to correct and verify the translation. Click here for instructions.
2) The base class version of this function has no effect. The derived classes may override this function to allow synchronizing the underlying device with the buffers.
For output streams, this typically results in writing the contents of the put area into the associated sequence, i.e. flushing of the output buffer. For input streams, this typically empties the get area and forces a re-read from the associated sequence to pick up recent changes. The default behavior (found, for example, in std::basic_stringbuf), is to do nothing.
Indice |
[modifica]Parametri
You can help to correct and verify the translation. Click here for instructions.
[modifica]Valore di ritorno
1) The return value of sync()
.
2) Returns 0 on success, -1 otherwise. The base class version returns 0.
[modifica]Esempio
This section is incomplete Reason: no example |
[modifica]Vedi anche
sincronizza con il dispositivo di archiviazione sottostante Original: synchronizes with the underlying storage device The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) | |
[virtuale] | scrive i caratteri nel file associato dalla zona put Original: writes characters to the associated file 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_filebuf membro) |