Documentation Home >> Headers >> <exception_ptr> Header >> std::exception_ptr >> std::exception_ptr::operator== Equality Comparison Operator

Check whether *this references the same stored exception as another instance.

bool operator==(exception_ptr const& other) const;

Returns:

true if both *this and other reference the same stored exception or neither *this and other have a stored exception, false otherwise.

Throws:

Nothing.

Header

#include <exception_ptr>

See Also