std::packaged_task::reset
De cppreference.com
[] |
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. |
<metanoindex/>
<tbody> </tbody> void reset(); |
(depuis C++11) | |
Rtablit l'tat abandonnant les rsultats d'excutions prcdentes. Nouvel tat partag est construit .
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.
Equivalent
*this = packaged_task(std::move(f)), o f est la tche mmoris .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.
Paramtres
(Aucun)
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.
Retourne la valeur
(Aucun)
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.
Exceptions
- std::future_error si
*thisa pas un tat partag. La condition d'erreur est rgl sur no_state .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 s'il n'y avait pas assez de mmoire pour un nouvel tat partag .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. - toute exception lance par le dplacer constructeur de la
packaged_tasknouvelleOriginal:any exception thrown by the dplacer constructeur of the newpackaged_taskThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.