Namespaces
Variants
Views
Actions

std::packaged_task::~packaged_task

From cppreference.com
< cpp‎ | thread‎ | packaged task
Revision as of 05:00, 29 July 2013 by Cubbi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
~packaged_task()

Abandons the shared state and destroys the stored task object.

As with std::promise::~promise, if the shared state is abandoned before it was made ready, an std::future_error exception is stored with the error code std::future_errc::broken_promise).

[edit] Parameters

(none)

[edit] Example