Check if the asynchronous result associated with an instance of std::shared_future
is ready, and has a stored exception.
bool has_exception() const;
- Preconditions:
this->valid()would returntrue.- Returns:
trueif the asynchronous result associated with*thisis ready and has a stored exception,falseotherwise.- Throws:
Nothing.
Header
#include <future>