◐ Shell
clean mode source ↗

std::shared_future::valid - 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.

Click here for the English version of this page

<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:

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

true * se si riferisce ad uno stato comune, altrimenti false.

Original:

true if *this refers to a shared state, otherwise false.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Eccezioni

Esempio

Vedi anche

attende il risultato diventi disponibile

Original:

waits for the result to become available

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(metodo pubblico) [modifica]