std::packaged_task::reset
Aus cppreference.com
< cpp | thread | packaged task
![]() | This page has been machine-translated from the English version of the wiki using Google Translate. The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
void reset(); | (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.
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.
You can help to correct and verify the translation. Click here for instructions.
[Bearbeiten]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.
You can help to correct and verify the translation. Click here for instructions.
[Bearbeiten]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.
You can help to correct and verify the translation. Click here for instructions.
[Bearbeiten]Ausnahmen
- std::future_error wenn *this hat kein Staat geteilt. Der Fehlerzustand wird no_state gesetzt .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_task
geworfenOriginal:any exception thrown by the bewegen Konstruktor of the newpackaged_task
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.