exceptions

To handle basic_ios exceptions.

  iostate exceptions() const;
  void exceptions(iostate except);
  
Remarks

The function exceptions() determines what elements in rdstate() cause exceptions to be thrown. The overloaded exceptions(iostate) calls clear(rdstate()) and leaves the argument except equal to exceptions().

Returns a mask that determines what elements are set in rdstate().