void clear( int nState = 0 );
Parameter
nState
If 0, all error bits are cleared; otherwise bits are set according to the following masks (ios enumerators) that can be combined using the bitwise OR ( | ) operator. The nState parameter must have one of the following values:
Remarks
Sets or clears the error-state flags. The rdstate function can be used to read the current error state.
ios Overview | Abstract Stream Base Class
See Also ios::rdstate, ios::good, ios::bad, ios::eof