basic_filebuf( const std::basic_filebuf& rhs ) = delete;
basic_filebuf( std::basic_filebuf&& rhs );
1) Constructs a
std::basic_filebufobject, initializing the base class by calling the default constructor of std::basic_streambuf. The created
basic_filebufis not associated with a file, and is_open() returns false.
2) The copy constructor is deleted;
std::basic_filebufis not CopyConstructible
3) Move-constructs a
std::basic_filebufobject by moving all contents from another
rhs, including the buffers, the associated file, the locale, the openmode, the is_open variable, and all other state. After move,
rhsis not associated with a file and rhs.is_open()==false. The member pointers of the base class std::basic_streambuf of
rhsand of the base class of
*thisare guaranteed to point to different buffers (unless null).
|rhs||-|| another |
Typically called by the constructor of std::basic_fstream.
|This section is incomplete|
Reason: no example
 See also
| assigns a basic_filebuf object |
(public member function)
| destructs a basic_filebuf object and closes the file if it is open |
(virtual public member function)