just::thread Complete C++ Standard Thread Library by Just Software Solutions

Documentation Home >> Headers >> <future> Header >> std::packaged_task >> std::packaged_task Destructor

Destroys a std::packaged_task object.

~packaged_task();

Effects:

Destroys *this. If *this has an associated asynchronous result, and that result is not ready, then that result becomes ready with a std::future_error exception with an error code of __broken_packagedtask_.

Throws:

Nothing

Header

#include <future>

See Also