[ios.base.cons] (original) (raw)

31 Input/output library [input.output]

31.5 Iostreams base classes [iostreams.base]

31.5.2 Class ios_base [ios.base]

31.5.2.8 Constructors and destructor [ios.base.cons]

Effects: Eachios_basemember has an indeterminate value after construction.

The object's members shall be initialized by callingbasic_ios​::​initbefore the object's first use or before it is destroyed, whichever comes first; otherwise the behavior is undefined.

Effects: Calls each registered callback pair(fn, idx) ([ios.base.callback]) as(*fn)(​erase_event, *this, idx)at such time that anyios_basemember function called from withinfnhas well-defined results.

Then, any memory obtained is deallocated.