Documentation Home >> Headers >> <jss/experimental_future.hpp> Header >> std::experimental::shared_future >> std::experimental::shared_future<>::has_exception Member function

Check if the asynchronous result associated with an instance of std::experimental::shared_future is ready, and has a stored exception.

bool has_exception() const;

Preconditions:

this->valid() would return true.

Returns:

true if the asynchronous result associated with *this is ready and has a stored exception, false otherwise.

Throws:

Nothing.

Header

#include <experimental/future>

See Also