| I/O manipulators | ||||
| Print functions(C++23) | ||||
| C-style I/O | ||||
| Buffers | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++20) | ||||
| Streams | ||||
| Abstractions | ||||
| File I/O | ||||
| String I/O | ||||
| Array I/O | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
| Synchronized Output | ||||
(C++20) | ||||
| Types | ||||
| Error category interface | ||||
(C++11) | ||||
(C++11) |
| Public member functions | ||||
basic_filebuf::basic_filebuf | ||||
(C++11) | ||||
(C++11) | ||||
(C++26) | ||||
| Protected member functions | ||||
| Non-member functions | ||||
(C++11) |
basic_filebuf(); | (1) | |
basic_filebuf(conststd::basic_filebuf& rhs)= delete; | (2) | (since C++11) |
basic_filebuf(std::basic_filebuf&& rhs); | (3) | (since C++11) |
Constructs newstd::basic_filebuf object.
std::basic_filebuf object, initializing the base class by calling the default constructor ofstd::basic_streambuf. The createdbasic_filebuf is not associated with a file, andis_open() returnsfalse.std::basic_filebuf object by moving all contents from anotherstd::basic_filebuf objectrhs, 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 andrhs.is_open()==false. The member pointers of the base classstd::basic_streambuf ofrhs and of the base class of*this are guaranteed to point to different buffers (unless null).Contents |
| rhs | - | anotherbasic_filebuf |
Typically called by the constructor ofstd::basic_fstream.
| This section is incomplete Reason: no example |
(C++11) | assigns abasic_filebuf object(public member function)[edit] |
[virtual] | destructs abasic_filebuf object and closes the file if it is open(virtual public member function)[edit] |