To provide an inline input and output numerical formatting mechanism.
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.)
| Manipulator | Definition |
|---|---|
| ios_base& dec(ios_base&) | format output data as a decimal |
| ios_base& oct(ios_base&) | format output data as octal |
| ios_base& hex(ios_base&) | format output data as hexadecimal |