std::dec, std::hex, std::oct

Sets the  basefield  format flag for the  str  stream to  dec .

When  basefield  is set to  dec , integral numerical values inserted into the stream are expressed in decimal base (i.e., radix 10). For input streams, extracted values are also expected to be expressed in decimal base when this flag is set.

The  basefield  format flag can take any of the following values (each with its own manipulator):

flag valueeffect when set
decread/write integral values using decimal base format.
hexread/write integral values using hexadecimal base format.
octread/write integral values using octal base format.

For standard streams, the  basefield  flag is set to  dec  on initialization.