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.

mask
Mask representing the flags to be reset.
This is an object of type ios_base::fmtflags.

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:
  0x64
  64

See also.
  setiosflags
  iomanip manipulators


© The C++ Resources Network, 2001