Documentation Home >> Headers >> <jss/experimental_future.hpp> Header >> std::experimental::packaged_task >> std::experimental::packaged_task Destructor

Destroys a std::experimental::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 std::future_errc::broken_promise.

Throws:

Nothing

Header

#include <experimental/future>

See Also