| 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) |
virtual ~basic_filebuf(); | ||
Callsclose() to close the associated file and destructs all other members ofbasic_filebuf. If an exception occurs during the destruction of the object, including the call toclose(), it is caught and not rethrown.
Contents |
Typically called by the destructor ofstd::basic_fstream.
| This section is incomplete Reason: no example |
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 622 | C++98 | it was unclear how to handle the exception thrown during destruction | it is caught but not rethrown |
constructs abasic_filebuf object(public member function)[edit] | |
| flushes the put area buffer and closes the associated file (public member function)[edit] |