Standard C++ Library Reference ISO/IEC (VERSION3)
 locale getloc() const;
 static int xalloc();
 long& iword(int idx);
 void *& pword(int idx);
 typedef void *(event_callback(event ev,
 ios_base& iosbase, int idx);
 void register_callback(event_callback pfn, int idx);
 static bool sync_with_stdio(bool newsync = true);
protected:
 ios_base();
 };
The class describes the storage and member functions common to both input and output streams that
does not depend on the template parameters. (The template class basic_ios describes what is
common and is dependent on template parameters.
An object of class ios_base stores formatting information, which consists of:
format flags in an object of type fmtflags● 
an exception mask in an object of type iostate● 
a field width in an object of type int● 
a display precison in an object of type int● 
a locale object in an object of type locale● 
two extensible arrays, with elements of type long and void pointer● 
An object of class ios_base also stores stream state information, in an object of type iostate,
and a callback stack.
ios_base::event
enum event {
 copyfmt_event, erase_event,
 imbue_event};
The type is an enumeration that describes an object that can store the callback event used as an
argument to a function registered with register_callback. The distinct event values are:
copyfmt_event, to identify a callback that occurs near the end of a call to copyfmt, just
before the exception mask is copied.
● 
erase_event, to identify a callback that occurs at the beginning of a call to copyfmt, or at
the beginning of a call to the destructor for *this.
● 
imbue_event, to identify a callback that occurs at the end of a call to imbue, just before
the function returns.
● 










