ios::setstate
void setstate ( iostate state ); | ios |
cplusplus.com |
Set control state.
Modifies the current control state value by adding (bitwise OR) the error state flags
passed as paremeter to the current state.
Any error bit already set is not cleared. If you want to modify the state flags
without keeping the current value use clear
instead.
The effect of this function is as to call:
clear ( rdstate() | state );
Parameters.
Return Value.
none
Basic template member declaration ( basic_ios<charT,traits> ):
void setstate ( iostate state ); |
See also.
fail,
good,
bad,
eof,
rdstate,
clear
ios class