Documentation Home >> Headers >> <exception_ptr> Header >> std::exception_ptr >> std::exception_ptr::operator bool Conversion Operator

Check whether *this has a stored exception.

explicit operator bool() const;

Returns:

true if *this has a stored exception, false otherwise.

Throws:

Nothing.

Header

#include <exception_ptr>

See Also