long setf( long lFlags );
long setf( long lFlags, long lMask );
Return Value
The first overloaded setf function turns on only those format bits that are specified by 1s in lFlags. It returns a long that contains the previous value of all the flags.
The second function alters those format bits specified by 1s in lMask. The new values of those format bits are determined by the corresponding bits in lFlags. It returns a long that contains the previous value of all the flags.
Parameters
lFlags
Format flag bit values. See the flags member function for a list of format flags. To combine these flags, use the bitwise OR ( | ) operator.
lMask
Format flag bit mask.
ios Overview | Abstract Stream Base Class
See Also ios::flags, ios::unsetf, ios setiosflags manipulator