basic_ios::operator void *

basic_ios::operator void *

operator void *() const;

The operator returns a null pointer only if fail().