setstate

To set the state of the format flags.

  void setstate(iostate state) throw(failure);
  
Remarks

Calls clear(rdstate() | state) and may throw an exception.

There is no return value.

For an example of setstate() usage refer to ios::rdstate()