std::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. |
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()
orshare()
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()
orshare()
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.
Indice |
[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
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.
You can help to correct and verify the translation. Click here for instructions.
[modifica]Eccezioni
[modifica]Esempio
This section is incomplete Reason: no example |
[modifica]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) |