When used in an expression out << setiosflags(mask) or in >> setiosflags(mask), sets all format flags of the stream out or in as specified by the mask.
List of all std::ios_base::fmtflags :
dec - use decimal base for integer I/Ooct - use octal base for integer I/Ohex - use hexadecimal base for integer I/Obasefield - dec|oct|hex|0 useful for masking operationsleft - left adjustment(add fill characters to the right)right - right adjustment (adds fill characters to the left)internal - internal adjustment (adds fill characters to the internal designated point)adjustfield - left|right|internal. Useful for masking operationsscientific - generate floating point types using scientific notation, or hex notation if combined with fixedfixed - generate floating point types using fixed notation, or hex notation if combined with scientificfloatfield - scientific|fixed|(scientific|fixed)|0. Useful for masking operationsboolalpha - insert and extract bool type in alphanumeric formatshowbase - generate a prefix indicating the numeric base for integer output, require the currency indicator in monetary I/Oshowpoint - generate a decimal-point character unconditionally for floating-point number outputshowpos - generate a \\+ character for non-negative numeric outputskipws - skip leading whitespace before certain input operationsunitbuf flush the output after each output operationuppercase - replace certain lowercase letters with their uppercase equivalents in certain output output operations