30 Input/output library [input.output]

30.5 Iostreams base classes [iostreams.base]

30.5.6 ios_­base manipulators [std.ios.manip]

30.5.6.3 basefield manipulators [basefield.manip]

ios_base& dec(ios_base& str);

Effects: Calls str.setf(ios_­base​::​dec, ios_­base​::​basefield).

Returns: str298.

ios_base& hex(ios_base& str);

Effects: Calls str.setf(ios_­base​::​hex, ios_­base​::​basefield).

Returns: str.

ios_base& oct(ios_base& str);

Effects: Calls str.setf(ios_­base​::​oct, ios_­base​::​basefield).

Returns: str.

The function signature dec(ios_­base&) can be called by the function signature basic_­ostream& stream​::​operator<<(ios_­base& (*)(ios_­base&)) to permit expressions of the form cout << dec to change the format flags stored in cout.