|
setiosflagsmanipulator function
<iomanip> smanip setiosflags ( ios_base::fmtflags mask ); Set format flags Sets the format flags specified by parameter mask.Behaves as if a call to the stream's member ios_base::setf with mask as argument was made. This manipulator is declared in header <iomanip>, along with the other parameterized manipulators: resetiosflags, setbase, setfill, setprecision and setw. This header file declares the implementation-specific smanip type, plus any additional operator overload function needed to allow these manipulators to be inserted and extracted to/from streams with their parameters. Parameters
Return ValueUnspecified. This function should only be used as a stream manipulator (see example).Example
This code uses setiosflags manipulator to activate both the showbase and uppercase flags, with the same effect as if inserting manipulators showbase and uppercase. See also
|