Espacios de nombres
Variantes

std::basic_filebuf::sync

De cppreference.com
 
 
Biblioteca de E/S
Manipuladores de E/S
E/S estilo C
Búferes
(en desuso en C++98)
Flujos
Abstracciones
E/S de archivos
E/S de cadenas
E/S de arrays
(en desuso en C++98)
(en desuso en C++98)
(en desuso en C++98)
Salida sincronizada
Tipos
Interfaz de categoría de error
(C++11)
 
std::basic_filebuf
Las funciones públicas miembros
Original:
Public member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Protegido funciones miembro
Original:
Protected member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Terceros funciones
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
<tbody> </tbody>
protected: virtual int sync()
Si un área de poner existe (por ejemplo, el archivo fue abierto para escritura), llama overflow() para escribir toda la salida pendiente en el archivo .
Original:
If a put area exists (e.g. the file was opened for writing), calls overflow() to write all pending output to the file.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si un área get existe (por ejemplo, el archivo fue abierto para lectura), el efecto es definido por la implantación. Implementación típica puede vaciar el área get y mover la posición actual del fichero de nuevo por el correspondiente número de bytes .
Original:
If a get area exists (e.g. the file was opened for reading), the effect is implementation-defined. Typical implementation may empty out the get area and move the current file position back by the corresponding number of bytes.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parámetros

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

Valor de retorno

0 en caso de éxito, -1 en caso de fallo .
Original:
0 in case of success, -1 in case of failure.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Notas

sync() o su equivalente se llama implícitamente por close(), seekoff() y seekpos() y explícitamente convocada por std::basic_streambuf::pubsync
Original:
sync() or its equivalent is implicitly called by close(), seekoff(), and seekpos() and explicitly called by std::basic_streambuf::pubsync
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Ejemplo

Ver también

Invoca a sync().
(función miembro pública de std::basic_streambuf<CharT,Traits>) [editar]
sincroniza un flujo de salida con el archivo real
Original:
synchronizes an output stream with the actual file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [editar]