◐ Shell
clean mode source ↗

std::basic_filebuf::basic_filebuf — cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

basic_filebuf();

(1)

basic_filebuf( const std::basic_filebuf& rhs ) = delete;

(2)

basic_filebuf( std::basic_filebuf&& rhs );

(3) (depuis C++11)

1)

Construit un objet std::basic_filebuf, l'initialisation de la classe de base en appelant le constructeur par défaut de std::basic_streambuf. Le basic_filebuf créé n'est pas associée à un fichier et retourne 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)

Le constructeur de copie est supprimée; std::basic_filebuf n'est pas 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-construit un objet std::basic_filebuf en déplaçant tout le contenu d'un autre objet std::basic_filebuf rhs, y compris les tampons, le fichier associé, de la localisation, de la openMode, la variable is_open, et tout autre Etat. Après coup, rhs n'est pas associé à un fichier et rhs.is_open()==false. Les pointeurs membres de la classe de base std::basic_streambuf de rhs et de la classe de base de *this sont garantis pour pointer vers différents tampons (sauf null) .

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.

Paramètres

rhs -

basic_filebuf autre

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.

Notes

En règle générale appelée par le constructeur 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.

Exemple

Voir aussi

assigne un objet basic_filebuf

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.


(fonction membre publique) [edit]

[

virtuel

Original:

virtual

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

]

Détruit un objet basic_filebuf et ferme le fichier si elle est ouverte

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.


(function membre virtuelle publique) [edit]