std::basic_ios<CharT,Traits>::setstate (3) - Linux Manuals
std::basic_ios<CharT,Traits>::setstate: std::basic_ios<CharT,Traits>::setstate
NAME
std::basic_ios<CharT,Traits>::setstate - std::basic_ios<CharT,Traits>::setstate
Synopsis
void setstate( iostate state );
Sets the stream error flags state in addition to currently set flags. Essentially calls clear(rdstate() | state). May throw an exception.
Parameters
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
state - badbit   irrecoverable stream error
 
 Return value
(none)
Example
// Run this code
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 Output:
 
 
 See also
 
rdstate (public member function)
 
clear   (public member function)