This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here.
virtual int sync();
Synchronizes the controlled character sequence (the buffers) with the associated character sequence.1)
sync()da classe mais derivada
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.
[editar] Valor de retorno
1) The return value of
2) Returns 0 on success, -1 otherwise. The base class version returns 0.
|This section is incomplete|
Reason: no example
[editar] Veja também
sincroniza com o dispositivo de armazenamento subjacente
escreve caracteres para o arquivo associado da área de venda
(virtual protegido of