std::promise
Aus cppreference.com
<metanoindex/>
<tbody> </tbody>| definiert in Header <future>
|
||
template< class T > class promise; |
(1) | (seit C++11) |
template< class T > class promise<T&>; |
(2) | (seit C++11) |
template<> class promise<void>; |
(3) | (seit C++11) |
Das Klassen-Template
std::promise bietet die Möglichkeit, einen Wert, der später erworben wird asynchron über eine std::future Objekt, dass die std::promise liefern zu speichern .Original:
The class template
std::promise provides a facility to store a value that is later acquired asynchronously via a std::future object, that the std::promise can supply.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.
| This section is incomplete |
Member-Funktionen
baut das Versprechen Objekt Original: constructs the promise object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
| destructs the promise object (öffentliche Elementfunktion) | |
weist den gemeinsamen Staat Original: assigns 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. (öffentliche Elementfunktion) | |
Swaps zwei Versprechen Objekte 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. (öffentliche Elementfunktion) | |
Original: Getting the result The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
gibt eine future mit dem versprochenen Ergebnis assoziiert Original: returns a future associated with the promised result The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
Original: Setting the result The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| sets the result to specific value (öffentliche Elementfunktion) | |
setzt das Ergebnis spezifischer Wert und liefert die Meldung nur am Faden Ausfahrt Original: sets the result to specific value while delivering the notification only at thread exit The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
legt das Ergebnis an eine Ausnahme anzeigen Original: sets the result to indicate an exception The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
legt das Ergebnis an eine Ausnahme geben, während es die Mitteilung nur zu Threadendes Original: sets the result to indicate an exception while delivering the notification only at thread exit The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
Non-Member-Funktionen
(C++11) |
spezialisiert die std::swap Algorithmus Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktions-Template) |
