Documentation Home >> Headers >> <future> Header >> std::shared_future >> std::shared_future<>::valid Member function

Check if a std::shared_future instance is associated with an asynchronous result.

bool valid() const;

Returns:

true if the *this has an associated asynchronous result, false otherwise.

Throws:

Nothing.

Header

#include <future>

See Also