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.
- Mask representing the flags to be set.
This is an object of type ios_base::fmtflags which can take any combination of its possible values (see ios_base::fmtflags).
Return ValueUnspecified. This function should only be used as a stream manipulator (see 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.
|resetiosflags||Reset format flags (manipulator function)|
|ios_base::setf||Set specific format flags (public member function)|
|ios_base::flags||Get/set format flags (public member function)|