std::promise::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. |
std::future<R> get_future(); |
(dal C++11) | |
Restituisce un oggetto futuro associato con lo stesso stato condiviso come *this.
Original:
Returns a future object associated with 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.
Eccezione viene generata se *this non ha stato condiviso o
get_future
è già stato chiamato.Original:
Exception is thrown if *this has no shared state or
get_future
has already been called.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.
[modifica] 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.
[modifica] Valore di ritorno
Un futuro facendo riferimento allo stato condiviso di *this
Original:
A future referring to the shared state of *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.
[modifica] Eccezioni
std::future_error alle seguenti condizioni:
Original:
std::future_error on the following 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.
- *this non ha stato condiviso. La categoria di errore è impostato 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.
-
get_future()
è già stato chiamato su una promessa con lo stesso stato condiviso come *this. La categoria di errore è impostato future_already_retrieved.Original:get_future()
has already been called on a promise with the same shared state as *this. 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.