table of contents
- Tumbleweed 2026.11.13-1.1
- Leap-16.0
- Leap-15.6
| std::basic_filebuf::~basic_filebuf(3) | C++ Standard Libary | std::basic_filebuf::~basic_filebuf(3) |
NAME¶
std::basic_filebuf::~basic_filebuf - std::basic_filebuf::~basic_filebuf
Synopsis¶
virtual ~basic_filebuf();
Calls close() to close the associated file and destructs all other members of basic_filebuf. If an exception occurs during the destruction of the object, including the call to close(), it is caught and not rethrown.
Parameters¶
(none)
Return value¶
(none)
Notes¶
Typically called by the destructor of std::basic_fstream.
Example¶
This section is incomplete
Reason: no example
Defect reports
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 it is caught but not
during destruction rethrown
See also¶
constructor constructs a basic_filebuf object
(public member function) close flushes the put area buffer and closes
the associated file
(public member function)
| 2026.11.10 | http://cppreference.com |