std::packaged_task::reset
De 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(); |
(depuis C++11) | |
Rétablit l'état abandonnant les résultats d'exécutions précédentes. 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 tâche mémorisé .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.
[modifier] Paramètres
(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.
[modifier] 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.
[modifier] Exceptions
- std::future_error si *this a pas un état partagé. La condition d'erreur est réglé 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 mémoire 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 lancée par le déplacer constructeur de la
packaged_task
nouvelleOriginal:any exception thrown by the déplacer constructeur 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.