std::packaged_task::reset – cppreference.com
Aus cppreference.com
<metanoindex/>
<tbody> </tbody>
|
|
(seit C++11) | |
Setzt der Staat Verzicht auf die Ergebnisse der vorherigen Ausführungen. New gemeinsamen Staat aufgebaut .
Original:
Resets the state abandoning the results of previous executions. New shared state is constructed.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Entspricht *this = packaged_task(std::move(f)), wo f die gespeicherten Aufgabe .
Original:
Equivalent to *this = packaged_task(std::move(f)), where f is the stored task.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Parameter
(None)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Rückgabewert
(None)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Ausnahmen
std::future_error wenn
no_state*thishat kein Staat geteilt. Der Fehlerzustand wirdgesetzt .
Original:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.std::bad_alloc, wenn es nicht genug Speicher für einen neuen gemeinsamen Staat .
Original:
std::bad_alloc if there was not enough memory for a new shared state.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.jede Ausnahme von der bewegen Konstruktor der neuen
packaged_taskgeworfenOriginal:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.