std::packaged_task::reset

From cppreference.com
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