std::future::share - cppreference.com
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>
|
|
||
Trasferisce lo stato condiviso di *this a un oggetto std::shared_future. Oggetti std::shared_future multiple possono fare riferimento lo stesso stato condiviso, che non è possibile con std::future.
Original:
Transfers the shared state of *this to a std::shared_future object. Multiple std::shared_future objects may reference the same shared state, which is not possible with std::future.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Dopo aver chiamato share su un std::future, valid() == false.
Original:
After calling share on a std::future, valid() == false.
The text has been machine-translated via Google Translate.
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.
Valore di ritorno
Un oggetto std::shared_future contenente lo stato condiviso in precedenza detenuta da *this
Original:
A std::shared_future object containing the shared state previously held by *this
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Esempio
Vedi anche
attende un valore (eventualmente riferimento altri futuri) che è impostato in modo asincrono Original: waits for a value (possibly referenced by other futures) that is set asynchronously The text has been machine-translated via Google Translate. (classe template) [modifica] | |