basefield 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. Basefield manipulators
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