std::packaged_task::get_future
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody> std::future<R> get_future(); |
(dal C++11) | |
Restituisce un
future che condivide lo stesso stato condiviso come *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 può essere chiamato solo una volta per ogni 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.
Parametri
(Nessuno)
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.
Valore di ritorno
Un futuro che condivide lo stesso stato condiviso come
*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.
Eccezioni
std::future_error sulle condizioni di errore seguenti:
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.
- Lo stato condiviso è già stato recuperato tramite una chiamata a
get_future. La categoria di errore è impostato 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. *thisnon ha stato condiviso. La categoria di errore è impostato no_state.Original:*thishas 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.