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

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

See Also