std::basic_filebuf::basic_filebuf - cppreference.com
De cppreference.com
|
|
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate. La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
|
|
(1) | |
|
|
(2) | |
|
|
(3) | (desde C++11) |
1)
Construye un objeto std::basic_filebuf, inicializar la clase base llamando al constructor por defecto de std::basic_streambuf. El basic_filebuf creado no está asociado con un archivo y devuelve is_open() false .
Original:
Constructs a std::basic_filebuf object, initializing the base class by calling the default constructor of std::basic_streambuf. The created basic_filebuf is not associated with a file, and is_open() returns false.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
El constructor de copia se suprime std::basic_filebuf no es CopyConstructible
Original:
The copy constructor is deleted; std::basic_filebuf is not CopyConstructible
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
Move-construye un objeto std::basic_filebuf moviendo todo el contenido de otro objeto std::basic_filebuf rhs, incluyendo los amortiguadores, el archivo de configuración regional asociada, la, la, la openMode variables is_open, y todo otro estado. Después de mover, rhs no está asociado a un archivo y rhs.is_open()==false. Los punteros de miembros de la clase base std::basic_streambuf de rhs y de la clase base de *this están garantizados para apuntar a diferentes buffers (a menos que nulo) .
Original:
Move-constructs a std::basic_filebuf object by moving all contents from another std::basic_filebuf object rhs, including the buffers, the associated file, the locale, the openmode, the is_open variable, and all other state. After move, rhs is not associated with a file and rhs.is_open()==false. The member pointers of the base class std::basic_streambuf of rhs and of the base class of *this are guaranteed to point to different buffers (unless null).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Parámetros
| rhs | - | otro Original: another The text has been machine-translated via Google Translate. |
Notas
Por lo general convocada por el constructor de std::basic_fstream .
Original:
Typically called by the constructor of std::basic_fstream.
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
asigna un objeto basic_filebuf Original: assigns a basic_filebuf object The text has been machine-translated via Google Translate. (función miembro pública) [editar] | |
destructs un objeto basic_filebuf y cierra el archivo si está abierto Original: destructs a basic_filebuf object and closes the file if it is open The text has been machine-translated via Google Translate. (función miembro virtual pública) [editar] |