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

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

See Also