Standard C++ Library Reference ISO/IEC (VERSION3)

ios_base::event_callback
typedef void *(event_callback(event ev,
ios_base& iosbase, int idx);
The type describes a pointer to a function that can be registered with register_callback. Such
a function must not throw an exception.
ios_base::failure
class failure : public exception {
public:
explicit failure(const string& what_arg) {
};
The member class serves as the base class for all exceptions thrown by the member function clear
in template class basic_ios. The value returned by what() is what_arg.data().
ios_base::flags
fmtflags flags() const;
fmtflags flags(fmtflags newfmtflags);
The first member function returns the stored formatflags. The second member function stores
newfmtflags in the format flags and returns its previous stored value.
ios_base::fmtflags
typedef T1 fmtflags;
static const fmtflags boolalpha, dec, fixed, hex,
internal, left, oct, right, scientific,
showbase, showpoint, showpos, skipws, unitbuf,
uppercase, adjustfield, basefield, floatfield;
The type is a bitmask type T1 that describes an object that can store format flags. The distinct flag
values (elements) are:
boolalpha, to insert or extract objects of type bool as names (such as true and false)
rather than as numeric values
dec, to insert or extract integer values in decimal format
fixed, to insert floating-point values in fixed-point format (with no exponent field)
hex, to insert or extract integer values in hexadecimal format
internal, to pad to a field width as needed by inserting fill characters at a point internal to a
generated numeric field
left, to pad to a field width as needed by inserting fill characters at the end of a generated
field (left justification)
oct, to insert or extract integer values in octal format