Documentation Home >> Headers >> <jss/experimental_future.hpp> Header >> std::experimental::packaged_task >> std::experimental::packaged_task::operator bool Conversion Operator

Check whether *this has an associated task and asynchronous result.

explicit operator bool() const;

Returns:

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

Throws:

Nothing.

Header

#include <experimental/future>

See Also