std::promise::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. |
promise(); |
(1) | (dal C++11) |
template< class Alloc > promise( std::allocator_arg_t, const Alloc& alloc ); |
(2) | (dal C++11) |
promise( promise&& other ); |
(3) | (dal C++11) |
promise( const promise& other ) = delete; |
(4) | (dal C++11) |
Costruisce un oggetto
promise
.Original:
Constructs a
promise
object.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.
1)
Costruttore di default. Costruisce la promessa con uno stato vuoto condiviso.
Original:
Default constructor. Constructs the promise with an empty shared state.
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.
2)
Costruisce la promessa con uno stato vuoto condiviso. Lo stato condiviso è allocata mediante
alloc
. Alloc
devono soddisfare i requisiti di Allocator
.Original:
Constructs the promise with an empty shared state. The shared state is allocated using
alloc
. Alloc
must meet the requirements of Allocator
.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.
3)
Sposta costruttore. Costruisce la promessa con lo stato condiviso di
other
usando la semantica spostamento. other
è in stato valido, ma non definito in seguito.Original:
Move constructor. Constructs the promise with 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.
You can help to correct and verify the translation. Click here for instructions.
4)
promise
non è copiabile.Original:
promise
is not copyable.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] Parametri
alloc | - | allocatore da utilizzare per assegnare lo stato condiviso
Original: allocator to use to allocate the shared state The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
other | - | un altro
promise per acquisire lo stato diOriginal: another promise to acquire the state fromThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifica] Eccezioni
1-2)
(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.
3)
`