std::swap(std::promise)
Da cppreference.com.
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Elemento definito nell'header <future>
|
||
template< class R > void swap( promise<R> &lhs, promise<R> &rhs ); |
(dal C++11) | |
Specializzato l'algoritmo std::swap per std::promise. Scambi lo stato condiviso di
lhs
con quella di rhs
. Chiama efficacemente 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.
Indice |
[modifica] Parametri
lhs, rhs | - | promesse i cui stati di scambiare
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. |
[modifica] Valore di ritorno
(Nessuno)
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.
[modifica] Eccezioni
[modifica] Esempio
This section is incomplete Reason: no example |
[modifica] Vedi anche
swap due oggetti 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. (metodo pubblico) |