cpp/io/basic ios/clear

Sets the stream error state flags by assigning them the value of. By default, assigns std which has the effect of clearing all error state flags.

If rdbuf is a null pointer (i.e. there is no associated stream buffer), then is assigned.

Return value
(none)

Exceptions
If the new error state includes a bit that is also included in the exceptions mask, throws an exception of type failure.