ios_base::unsetf
void unsetf ( fmtflags mask ); | ios_base |
cplusplus.com |
Clear format flag.
Clears the format flags corresponding to the bits set in parameter mask.
Parameters.
Return Value.
none
Example.
// clearing flags
#include <iostream>
using namespace std;
int main () {
cout.setf ( ios_base::hex, ios_base::basefield ); // set hex as the basefield
cout.setf ( ios_base::showbase ); // activate showbase
cout << 100 << endl;
cout.unsetf ( ios_base::showbase ); // deactivate showbase
cout << 100 << endl;
return 0;
}
The execution of this example shall display:
0x64
64
See also.
flags,
setf
fmtflags type,
ios_base class