Espaços nominais
Variantes
Acções

std::future::operator=

Da cppreference.com
< cpp‎ | thread‎ | future

 
 
Biblioteca de suporte a discussão
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 namespace
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)
Exclusão mútua
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)
Gestão de bloqueio 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)
Variáveis ​​de condição
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::future
future::~future
future::operator=
future::share
Obtendo o 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.
future::get
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::valid
future::wait
future::wait_for
future::wait_until
 
future& operator=( future&& other );
(1) (desde C++11)
future& operator=( const future& other ) = delete;
(2) (desde C++11)
Atribui o conteúdo de outro 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 qualquer estado compartilhado e movimento atribui o conteúdo de other para *this. Após a atribuição, other.valid() == false e this->valid() irá produzir o mesmo valor que other.valid() antes da atribuição.
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 -
um std::future que irá transferir estado para *this
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] Exceções

noexcept specification:  
noexcept
  (desde C++11)