29 Input/output library [input.output]

29.5 Iostreams base classes [iostreams.base]

29.5.2 Class ios_­base [ios.base]

29.5.2.8 Constructors and destructor [ios.base.cons]

ios_base();
Effects: Each ios_­base member has an indeterminate value after construction.
The object's members shall be initialized by calling basic_­ios​::​init before the object's first use or before it is destroyed, whichever comes first; otherwise the behavior is undefined.
~ios_base();
Effects: Calls each registered callback pair (fn, idx) ([ios.base.callback]) as (*fn)(​erase_­event, *this, idx) at such time that any ios_­base member function called from within fn has well-defined results.
Then, any memory obtained is deallocated.