Espacios de nombres
Variantes
Acciones

std::basic_filebuf::overflow

De cppreference.com
< cpp‎ | io‎ | basic filebuf
 
 
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.
basic_filebuf::overflow
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.
 
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.
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.
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.

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.

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

[editar] Ejemplo

[editar] Ver también

[virtual]
Escribe los caracteres del área de colocación a la secuencia de salida asociada.
(función miembro virtual protegida de std::basic_streambuf<CharT,Traits>) [editar]
[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.

(función miembro virtual protegida) [editar]