Espacios de nombres
Variantes
Acciones

std::future::operator=

De cppreference.com
< cpp‎ | thread‎ | future
 
 
Tema Biblioteca de ayuda
Threads
Original:
Threads
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
this_thread espacio de nombres
Original:
this_thread namespace
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
(C++11)
Exclusión mutua
Original:
Mutual exclusion
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
Gestión de bloqueos genérico
Original:
Generic lock management
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
Las variables de condición
Original:
Condition variables
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
Futuros
Original:
Futures
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
(C++11)
(C++11)
 
std::future
future::operator=
Conseguir el resultado
Original:
Getting the result
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Estado
Original:
State
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
future& operator=( future&& other );
(1) (desde C++11)
future& operator=( const future& other ) = delete;
(2) (desde C++11)
Asigna el contenido de otro objeto futuro .
Original:
Assigns the contents of another future object.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
Libera cualquier estado compartido y el movimiento asigna el contenido de other a *this. Después de la asignación, y other.valid() == false this->valid() producirá el mismo valor que antes de la cesión other.valid() .
Original:
Releases any shared state and move-assigns the contents of other to *this. After the assignment, other.valid() == false and this->valid() will yield the same value as other.valid() before the assignment.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

2) std::future is not CopyAssignable.

[editar] Parámetros

other -
un std::future que serán transferidos a *this estado
Original:
a std::future that will transfer state to *this
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

*this

[editar] Excepciones

noexcept specification:  
noexcept
  (desde C++11)