std::basic_filebuf<CharT,Traits>::~basic_filebuf

virtual ~basic_filebuf();

Calls close() to close the associated file and destructs all other members of basic_filebuf. If an exception is thrown by close(), it is caught and not rethrown.

Parameters

(none).

Return value

(none).

Notes

Typically called by the destructor of std::basic_fstream.

Example

See also

constructs a basic_filebuf object
(public member function)
flushes the put area buffer and closes the associated file
(public member function)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/io/basic_filebuf/~basic_filebuf