Standard C++ Library Reference ISO/IEC (VERSION3)
right, to pad to a field width as needed by inserting fill characters at the beginning of a
generated field (right justification)
●
scientific, to insert floating-point values in scientific format (with an exponent field)●
showbase, to insert a prefix that reveals the base of a generated integer field●
showpoint, to insert a decimal point unconditionally in a generated floating-point field●
showpos, to insert a plus sign in a non-negative generated numeric field●
skipws, to skip leading white space before certain extractions●
unitbuf, to flush output after each insertion●
uppercase, to insert uppercase equivalents of lowercase letters in certain insertions●
In addition, several useful values are:
adjustfield, internal | left | right●
basefield, dec | hex | oct●
floatfield, fixed | scientific●
ios_base::getloc
locale getloc() const;
The member function returns the stored locale object.
ios_base::imbue
locale imbue(const locale& loc);
The member function stores loc in the locale object, then reports the callback event
imbue_event. It returns the previous stored value.
ios_base::Init
class Init {
};
The nested class describes an object whose construction ensures that the standard iostreams objects
are properly constructed, even before the execution of a constructor for an arbitrary static object.
ios_base::ios_base
ios_base();
The (protected) constructor does nothing. A later call to basic_ios::init must initialize the
object before it can be safely destroyed. Thus, the only safe use for class ios_base is as a base
class for template class basic_ios.