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

Check if a std::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