cpp/thread/packaged task/~packaged task

Abandons the shared state and destroys the stored task object.

As with std, if the shared state is abandoned before it was made ready, an std exception is stored with the error code std).

Parameters
(none)