Namespaces
Variants
Views
Actions

std::packaged_task::reset

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

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.

Parameters

(none)

Return value

(none)

Exceptions