std::ios_base::~ios_base

From cppreference.com
< cpplrm; | iolrm; | ios base
virtual ~ios_base();

Destroys the ios_base object.

Before any of the member functions would yield undefined results, calls callbacks, registered by register_callback() passing erase_event as parameter.

No operations on rdbuf are performed, it is not destroyed.