对码当歌,猿生几何?

std::ios_base::~ios_base

From cppreference.com
< cpp‎ | io‎ | 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.