std::basic_filebuf::basic_filebuf
Aus 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. |
basic_filebuf(); |
(1) | |
basic_filebuf( const std::basic_filebuf& rhs ) = delete; |
(2) | |
basic_filebuf( std::basic_filebuf&& rhs ); |
(3) | (seit C++11) |
Erzeugt ein
2) std::basic_filebuf
Objekt, initialisiert die Basisklasse durch Aufruf des Default-Konstruktor der std::basic_streambuf. Die erstellte basic_filebuf
nicht mit einer Datei, und is_open()
kehrt 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.
You can help to correct and verify the translation. Click here for instructions.
Der Copy-Konstruktor wird gestrichen;
3) std::basic_filebuf
nicht 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.
You can help to correct and verify the translation. Click here for instructions.
Move-baut eine
std::basic_filebuf
Objekt, indem Sie alle Inhalte von anderen std::basic_filebuf
Objekt rhs
, einschließlich der Puffer, der zugehörigen Datei, die locale, die openmode, der is_open variabel, und alle anderen Zustand. Nach Umzug wird rhs
nicht mit einer Datei und rhs.is_open()==false verbunden. Die Mitgliedsunternehmen Zeiger der Basisklasse std::basic_streambuf der rhs
und der Basisklasse *this
sind garantiert zu verschiedenen Puffern (außer null) zeigen .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.
You can help to correct and verify the translation. Click here for instructions.
Inhaltsverzeichnis |
[Bearbeiten] Parameter
rhs | - | anderen
basic_filebuf Original: another basic_filebuf The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[Bearbeiten] Notes
Typischerweise vom Konstruktor std::basic_fstream genannt .
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.
You can help to correct and verify the translation. Click here for instructions.
[Bearbeiten] Beispiel
This section is incomplete Reason: no example |
[Bearbeiten] Siehe auch
(C++11) |
ordnet eine basic_filebuf Objekt Original: assigns a basic_filebuf object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) |
[virtuell] |
zerstört sich eine basic_filebuf Objekt und schließt die Datei, wenn sie geöffnet ist Original: destructs a basic_filebuf object and closes the file if it is open The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen öffentlichen Member-Funktion) |