std::basic_filebuf::basic_filebuf - cppreference.com
De cppreference.com
<metanoindex/>
<tbody> </tbody>
|
|
(1) | |
|
|
(2) | |
|
|
(3) | (desde C++11) |
1)
Constrói um objeto std::basic_filebuf, inicializar a classe base chamando o construtor padrão de std::basic_streambuf. O basic_filebuf criado não está associado a um arquivo e retorna 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)
O construtor de cópia é apagado; std::basic_filebuf não é 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-constrói um objeto std::basic_filebuf movendo todo o conteúdo de outro objeto std::basic_filebuf rhs, incluindo os amortecedores, o arquivo associado, a localidade, o openMode, a variável nome esta_aberta, e todo outro Estado. Depois de mover, rhs não está associada com um ficheiro e rhs.is_open()==false. Os ponteiros membros da classe base std::basic_streambuf de rhs e da classe base de *this são garantidos para apontar para buffers diferentes (a não ser 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 | - | outro Original: another The text has been machine-translated via Google Translate. |
Notas
Normalmente chamado pelo construtor 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.
Exemplo
Veja também
atribui um objeto basic_filebuf Original: assigns a basic_filebuf object The text has been machine-translated via Google Translate. (função pública membro) [edit] | |
destrói um objeto basic_filebuf e fecha o arquivo, se ele estiver aberto Original: destructs a basic_filebuf object and closes the file if it is open The text has been machine-translated via Google Translate. (função pública virtual membro) [edit] | |