std::promise::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> promise(); |
(1) | (depuis C++11) |
template< class Alloc > promise( std::allocator_arg_t, const Alloc& alloc ); |
(2) | (depuis C++11) |
promise( promise&& other ); |
(3) | (depuis C++11) |
promise( const promise& other ) = delete; |
(4) | (depuis C++11) |
Construit un objet
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)
Constructeur par défaut. Construit avec la promesse d'un état vide partagée .
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)
Construit avec la promesse d'un état vide partagé. L'état partagé est alloué à l'aide
alloc. Alloc doit satisfaire aux exigences de 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)
Déplacez constructeur. Construit avec la promesse de l'état partagé de
other en utilisant la sémantique de déplacement. other est dans un état valide, mais non défini par la suite .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 n'est pas copiable .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.
Paramètres
| alloc | - | allocateur à utiliser pour allouer l'état partagé
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 | - | une autre
promise acquérir l'état d'Original: 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. |
Exceptions
1-2)
(Aucun)
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)
`