fmtflags manipulators

To provide an inline input and output numerical formatting mechanism.

Remarks

Manipulators are used in the stream to alter the formatting of the stream.

A reference to an object of type ios_base is returned to the stream. (The this pointer.)

Table 1. Prototype of ios_base manipulators
Manipulator Definition
ios_base& boolalpha(ios_base&) insert and extract bool type in alphabetic format
ios_base& noboolalpha (ios_base&) unsets insert and extract bool type in alphabetic format
   
ios_base& showbase(ios_base& b) set the number base to parameter b
ios_base& noshowbase (ios_base&) remove show base
   
ios_base& showpoint(ios_base&) show decimal point
ios_base& noshowpoint(ios_base&) do not show decimal point
   
ios_base& showpos(ios_base&) show the positive sign
ios_base& noshowpos(ios_base&) do not show positive sign
   
ios_base& skipws(ios_base&) input only skip white spaces
ios_base& noskipws(ios_base&) input only no skip white spaces
   
ios_base& uppercase(ios_base&) show scientific in uppercase
ios_base& nouppercase (ios_base&) do not show scientific in uppercase
   
ios_base& unitbuf (ios_base::unitbuf) set the unitbuf flag
ios_base& nounitbuf (ios_base::unitbuf) unset the unitbuf flag