std::shared_future::valid
De cppreference.com
<metanoindex/>
<tbody> </tbody> bool valid() const; |
(desde C++11) | |
Verifica se o futuro se refere a um estado compartilhado com uma promessa. Este é o único caso em futuros retornados por
std::promise::get_future(), std::packaged_task::get_future() std::async() ou até que a primeira vez que é chamado get().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.
Parâmetros
(Nenhum)
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.
Valor de retorno
true se * isto se refere a um estado compartilhado, caso contrário 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.
Exceções
Exemplo
| Esta seção está incompleta Motivo: sem exemplo |
