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