From cppreference.com
fmtflagsflags()const; (1) fmtflagsflags(fmtflagsflags); (2) Manages format flags.
1) returns current formatting setting
2) replaces current settings with given ones.
Parameters
flags - new formatting setting. It can be a combination of
constants. Formatting flagsConstant Explanation
use decimal base for integer I/O: see
use octal base for integer I/O: see
use hexadecimal base for integer I/O: see
dec|oct|hex. Useful for masking operations
left adjustment (adds fill characters to the right): see
right adjustment (adds fill characters to the left): see
internal adjustment (adds fill characters to the internal designated point): see
left|right|internal. Useful for masking operations
generate floating point types using scientific notation, or hex notation if combined with fixed: see
generate floating point types using fixed notation, or hex notation if combined with scientific: see
scientific|fixed. Useful for masking operations
insert and extract bool type in alphanumeric format: see
generate a prefix indicating the numeric base for integer output, require the currency indicator in monetary I/O: see
generate a decimal-point character unconditionally for floating-point number output: see
generate a + character for non-negative numeric output: see
skip leading whitespace before certain input operations: see
flush the output after each output operation: see
replace certain lowercase letters with their uppercase equivalents in certain output operations: see
Return value
the formatting flags before the call to the function
Example
See also
sets specific format flag
(public member function)
clears specific format flag
(public member function)