std::packaged_task::get_future
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. |
std::future<R> get_future(); |
(depuis C++11) | |
Retourne une
future
qui partage le même état partagé comme *this .Original:
Returns a
future
which shares the same shared state as *this.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.
get_future
peut être appelée une seule fois pour chaque packaged_task
.Original:
get_future
can be called only once for each packaged_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
Un avenir qui partage le même état partagé comme *this .
Original:
A future which shares the same shared state as *this.
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 sur les conditions d'erreur suivants:
Original:
std::future_error on the following error conditions:
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.
- L'état partagé a déjà été récupérées via un appel à
get_future
. La catégorie d'erreur est mis à future_already_retrieved .Original:The shared state has already been retrieved via a call toget_future
. The error category is set to future_already_retrieved.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - *this n'a pas d'état partagé. La catégorie d'erreur est mis à no_state .Original:*this has no shared state. The error category is set to no_state.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.