|
ios::exceptionspublic member function
iostate exceptions ( ) const; void exceptions ( iostate except ); Get/set exception mask The first function version returns the current exception mask for the stream.The second function version sets a new exception mask and calls clear(rdstate()). The exception mask is an internal value of all stream objects specifying which state flags have to throw an exception when they are set. This mask is an object of type ios_base::iostate, which is a value formed by any combination of the following member constants:
More than a single state flag bit can be combined into a single bitmask by using the bitwise OR operator (|). By default, stream objects have a goodbit exception mask, which means no exceptions are thrown when any of the state flags is set. Parameters
Return ValueA bitmask of type ios_base::iostate representing the existing exception mask before the call to this member function.Example
Basic template member declaration( basic_ios<charT,traits> )
See also
|