std::promise::promise
Aus 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) | (seit C++11) |
template< class Alloc > promise( std::allocator_arg_t, const Alloc& alloc ); |
(2) | (seit C++11) |
promise( promise&& other ); |
(3) | (seit C++11) |
promise( const promise& other ) = delete; |
(4) | (seit C++11) |
Erzeugt ein
promise Objekt .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)
Standardkonstruktor. Erzeugt das Versprechen mit einem leeren gemeinsamen Staat .
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)
Erzeugt das Versprechen mit einer leeren freigegebenen Zustand. Der gemeinsame Staat zugewiesen werden, indem
alloc. Alloc müssen den Anforderungen der 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)
Bewegen Konstruktor. Erzeugt das Versprechen mit dem gemeinsamen Stand der
other mit move-Semantik. other ist gültig, aber undefinierten Zustand danach .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 kann nicht kopiert werden .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.
Parameter
| alloc | - | allocator verwenden, um den gemeinsamen Staat zuzuordnen
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 | - | anderen
promise den Staat vor zu erwerbenOriginal: 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. |
Ausnahmen
1-2)
(None)
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)
`