std::shared_future::shared_future
De cppreference.com
|
|
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í. |
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.
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.
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.
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.
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)
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.
You can help to correct and verify the translation. Click here for instructions.
3-4)