ios::flags

long flags( long lFlags );

long flags() const;

Return Value

The first overloaded flags function sets the stream’s internal flags variable to lFlags and returns the previous value.

The second function returns the stream’s current flags.

Parameter

lFlags

The new format flag values for the stream. The values are specified by the following bit masks (ios enumerators) that can be combined using the bitwise OR ( | ) operator. The lFlags parameter must have one of the following values:

ios OverviewAbstract Stream Base Class

See Also   ios::setf, ios::unsetf, ios setiosflags manipulator, ios resetiosflags manipulator, ios::adjustfield, ios::basefield, ios::floatfield