std::shared_future::valid
Da cppreference.com
< cpp | thread | shared future
![]() | This page has been machine-translated from the English version of the wiki using Google Translate. The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
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.
Índice |
[editar]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.
[editar]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.
[editar]Exceções
[editar]Exemplo
Esta seção está incompleta Motivo: sem exemplo |
[editar]Veja também
aguarda o resultado de se tornarem disponíveis 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. (função pública membro) |