std::basic_filebuf::overflow
De cppreference.com
< cpp | io | basic filebuf
![]() |
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. |
protected: virtual int_type overflow ( int_type c = Traits::eof() ); |
||
Se comporta como el std::basic_streambuf::overflow clase base, excepto que para escribir los datos del área de poner a la secuencia de caracteres asociado (el archivo), primero utiliza codecvt::out() de la configuración regional impregnado para convertir los caracteres en externa (posiblemente varios bytes) representación almacenada en una búfer temporal (asignado tan grande como sea necesario), a continuación, utiliza el archivo de E / S para copiar todos los bytes completamente convertidos en el archivo .
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.
You can help to correct and verify the translation. Click here for instructions.
Si la conversión falla con std::codecvt_base::error, devuelve Traits::eof() sin pretender ninguna salida .
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.
You can help to correct and verify the translation. Click here for instructions.
Si el archivo asociado no está abierta (is_open()==false, devuelve Traits::eof() antes de hacer nada .
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.
You can help to correct and verify the translation. Click here for instructions.
Contenido |
[editar] 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.
You can help to correct and verify the translation. Click here for instructions.
[editar] Valor de retorno
Traits::not_eof(c) para indicar el éxito o fracaso Traits::eof() para indicar .
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.
You can help to correct and verify the translation. Click here for instructions.
[editar] Ejemplo
This section is incomplete Reason: no example |
[editar] Ver también
[virtual] |
escribe los caracteres a la secuencia de salida asociado del área de venta 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. (virtuales protegidos of std::basic_streambuf miembro de función)
|
[virtual] |
lee el archivo asociado 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. (virtuales protegidos miembro de función) |