std::shared_future::valid
De cppreference.com
< cpp | thread | shared future
![]() | Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate. La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
bool valid()const; | (desde C++11) | |
Comprueba si el futuro se refiere a un estado compartido con una promesa. Este es el único caso de futuros devueltos por std::promise::get_future(), std::packaged_task::get_future() o std::async() hasta la primera vez que se llama
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.
Contenido |
[editar]Parámetros
(Ninguno)
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 si esto se refiere a un estado compartido, de lo contrario 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]Excepciones
[editar]Ejemplo
Esta sección está incompleta Razón: sin ejemplo |
[editar]Ver también
Espera a que el resultado esté disponible. (función miembro pública) |