Skip to content

C++:ios

Format flag manipulators

Independent flags (switch on)

  • boolalpha: Alphanumerical bool values
  • showbase: Show numerical base prefixes
  • showpoint: Show decimal point
  • showpos: Show positive signs
  • skipws: Skip whitespaces
  • unitbuf: Flush buffer after insertions
  • uppercase: Generate upper-case letters

Independent flags (switch off)

  • noboolalpha: No alphanumerical bool values
  • noshowbase: Do not show numerical base prefixes
  • noshowpoint: Do not show decimal point
  • noshowpos: Do not show positive signs
  • noskipws: Do not skip whitespaces
  • nounitbuf: Do not force flushes after insertions
  • nouppercase: Do not generate upper case letters

Numerical base format flags ("basefield" flags)

  • dec: Use decimal base
  • hex: Use hexadecimal base
  • oct: Use octal base

Floating-point format flags ("floatfield" flags)

  • fixed: Use fixed floating-point notation
  • scientific: Use scientific floating-point notation

Adustment format flags ("adjustfield" flags)

  • internal: Adjust field by inserting characters at an internal position
  • left: Adjust output to the left
  • right: Adjust output to the right

See also