resetiosflags
[manipulator] smanip resetiosflags ( ios_base::fmtflags mask ); | <iomanip> |
cplusplus.com |
Reset format flags
Unsets the format flags specified by parameter mask.
Behaves as a call to stream's member:
setf(0,mask);
You must include <iomanip> to use this manipulator.
Parameters.
Return Value.
Unspecified.
This function should only be used as a stream manipulator.
Example.
// resetiosflags example #include <iostream> #include <iomanip> using namespace std; int main () { cout << hex << setiosflags (ios_base::showbase); cout << 100 << endl; cout << resetiosflags (ios_base::showbase); cout << 100 << endl; return 0; }This code first sets flag showbase and then resets it using resetiosflags manipulator. The execution of this example shall display:
See also.
setiosflags
iomanip manipulators