Namespaces
Variants
Views
Actions

std::packaged_task::reset

From cppreference.com
< cpp‎ | thread‎ | packaged task
Revision as of 18:32, 9 July 2013 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
void reset();
(since C++11)

Resets the state abandoning the results of previous executions. New shared state is constructed.

Equivalent to *this = packaged_task(std::move(f)), where f is the stored task.

[edit] Parameters

(none)

[edit] Return value

(none)

[edit] Exceptions