Documentation Home >> Headers >> <future> Header >> std::packaged_task >> std::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 <future>

See Also