std::shared_future::valid
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> bool valid() const; |
(dal C++11) | |
Controlla se il futuro si riferisce ad uno stato condiviso con una promessa. Questo è l'unico caso di futures restituiti da
std::promise::get_future(), std::packaged_task::get_future() std::async() o fino a quando la prima volta get() si chiama.Original:
Checks if the future refers to a state shared with a promise. This is the case only for futures returned by
std::promise::get_future(), std::packaged_task::get_future() or std::async() until the first time get() is 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.