Espaços nominais
Variantes
Acções

std::promise::operator=

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

 
 
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)
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)
 
std::promise
Funções de membro
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
promise::promise
promise::~promise
promise::operator=
promise::swap
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.
promise::get_future
Definir o resultado
Original:
Setting the result
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
promise::set_value
promise::set_value_at_thread_exit
promise::set_exception
promise::set_exception_at_thread_exit
 
promise& operator=( promise&& other );
(1) (desde C++11)
promise& operator=(const promise& rhs )= delete;
(2) (desde C++11)
Atribui o conteúdo.
Original:
Assigns the contents.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
Mova operador de atribuição. Atribui o estado compartilhado de other usando a semântica de movimento. other está em estado válido, mas indefinido depois.
Original:
Move assignment operator. Assigns the shared state of other using move semantics. other is in valid, but undefined state afterwards.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
promise não é cópia transferível.
Original:
promise is not copy-assignable.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar]Parâmetros

other -
outro promise adquirir o estado de
Original:
another promise to acquire the state from
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

1)
noexcept specification:  
noexcept
  (desde C++11)
close