Espacios de nombres
Variantes

std::shared_future::shared_future

De cppreference.com
 
 
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
 
 
<tbody> </tbody>
shared_future();
(1) (desde C++11)
shared_future( const shared_future& other );
(1) (desde C++11)
shared_future( future<R>&& other );
(1) (desde C++11)
shared_future( shared_future&& other );
(1) (desde C++11)
Construye un nuevo shared_future .
Original:
Constructs a new shared_future.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
begin)
1)
Por defecto constructor. Construye un futuro vacío compartida, que no se refiere a un estado compartido, es decir valid() == false .
Original:
Default constructor. Constructs an empty shared future, that doesn't refer to a shared state, that is valid() == false.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Construye un futuro compartido que hace referencia al mismo estado compartido, como other, si hay alguna .
Original:
Constructs a shared future that refers to the same shared state, as other, if there's any.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3-4)
Mueva constructor. Transfiere el estado compartido en manos de other a *this. Después de la construcción, other->valid() == false, también valid() devuelve el mismo valor que other.valid() habría vuelto antes de la construcción .
Original:
Move constructor. Transfers the shared state held by other to *this. After the construction, other->valid() == false, also valid() returns the same value as other.valid() would have returned before the construction.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parámetros

other -
otro objeto para inicializar el futuro con
Original:
another future object to initialize with
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Excepciones

1)
Especificación noexcept:  
<tbody> </tbody>
noexcept
  (desde C++11)
2)
(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.
3-4)
Especificación noexcept:  
<tbody> </tbody>
noexcept
  (desde C++11)