std::swap(std::promise)
De cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody>| Definido no cabeçalho <future>
|
||
template< class R > void swap( promise<R> &lhs, promise<R> &rhs ); |
(desde C++11) | |
Especializa o algoritmo std::swap para std::promise. Bolsas de valores do estado compartilhado de
lhs com a de rhs. Efetivamente chama lhs.swap(rhs).Original:
Specializes the std::swap algorithm for std::promise. Exchanges the shared state of
lhs with that of rhs. Effectively calls lhs.swap(rhs).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
| lhs, rhs | - | promessas cujos estados para trocar
Original: promises whose states to swap The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Valor de retorno
(Nenhum)
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.
Exceções
Exemplo
| Esta seção está incompleta Motivo: sem exemplo |
Veja também
troca dois objetos promessa Original: swaps two promise objects The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função pública membro) | |