public member function
<ios> <iostream>
std::ios_base::unsetfvoid unsetf (fmtflags mask);
Clear specific format flags
Clears the format flags selected in mask.The parameterized manipulator resetiosflags behaves in a similar way as this member function.
1
2
3
4
5
6
7
8
9
10
11
// modifying flags with setf/unsetf
#include <iostream> // std::cout, std::ios
int main () {
std::cout.setf ( std::ios::hex, std::ios::basefield ); // set hex as the basefield
std::cout.setf ( std::ios::showbase ); // activate showbase
std::cout << 100 << '\n';
std::cout.unsetf ( std::ios::showbase ); // deactivate showbase
std::cout << 100 << '\n';
return 0;
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4