Espacios de nombres
Variantes
Acciones

std::future::valid

De cppreference.com
< cpp‎ | thread‎ | future
 
 
Biblioteca de apoyo de concurrencia
Hilos
(C++11)
(C++20)
Espacio de nombres this_thread
(C++11)
(C++11)
(C++11)
Cancelación cooperativa
Exclusión mutua
(C++11)
Gestión genérica de bloqueo
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
Variables de condición
(C++11)
Semáforos
Pestillos y barreras
(C++20)
(C++20)
Futuros
(C++11)
(C++11)
(C++11)
(C++11)
Recuperación segura
(C++26)
Punteros de riesgo
Tipos atómicos
(C++11)
(C++20)
Inicialización de tipos atómicos
(C++11)(en desuso en C++20)
(C++11)(en desuso en C++20)
Orden de memoria
Funciones independientes para operaciones atómicas
Funciones independientes para indicadores atómicos
 
 
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()or share() .
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()or share() is called.
The text has been machine-translated via Google Translate.
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.

[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.

[editar] Excepciones

Especificación noexcept:  
noexcept
  (desde C++11)

[editar] Ejemplo

[editar] Ver también

Espera a que el resultado esté disponible.
(función miembro pública) [editar]