std::basic_filebuf<CharT,Traits>::~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.

# Declarations

virtual ~basic_filebuf();

# Return value

(none)

# Notes

Typically called by the destructor of std::basic_fstream.

# Example

This section is incompleteReason: no example

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 622C++98it was unclear how to handle the exception thrown during destructionit is caught but not rethrown

# See also