If setiosflags() sets flags, then what unsets them? I thought it would be unsetiosflags().
Printable View
If setiosflags() sets flags, then what unsets them? I thought it would be unsetiosflags().
setiosflags calls setf, so you can just use unsetf to unset flags, or use resetiosflags. You might even be able to do something like: setiosflags(~ios_base::showbase);