Destroys a std::packaged_task object.
~packaged_task();
- Effects:
Destroys
*this. If*thishas an associated asynchronous result, and that result is not ready, then that result becomes ready with astd::future_errorexception with an error code of __broken_packagedtask_.- Throws:
Nothing
Header
#include <future>