Namespaces
Variants
Views
Actions

std::packaged_task::~packaged_task

From cppreference.com
< cpp‎ | thread‎ | packaged task
Revision as of 20:19, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td class="t-dcl-nopad">
~packaged_task()
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

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