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

Check if the std::atomic_future instance has an associated asynchronous result.

bool valid() const;

Returns:

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

Throws:

Nothing.

Header

#include <future>

See Also