Namespaces
Variants
Views
Actions

std::packaged_task::~packaged_task

From cppreference.com
< cpp‎ | thread‎ | packaged task
Revision as of 21:01, 31 May 2013 by P12bot (Talk | contribs)

~packaged_task()

Abandons the shared state and destroys the stored task object.

A usual, 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).

Parameters

(none)

Example