std::promise::get_future
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. |
std::future<R> get_future(); | (seit C++11) | |
Gibt eine zukünftige Objekt mit dem gleichen gemeinsamen Staat als *this assoziiert .
Original:
Returns a future object associated with the same shared state as *this.
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.
Exception wird ausgelöst, wenn *this hat keine gemeinsame Staat oder
get_future
bereits aufgerufen wurde .Original:
Exception is thrown if *this has no shared state or
get_future
has already been called.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.
[Bearbeiten]Parameter
(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.
[Bearbeiten]Rückgabewert
Eine Zukunft, die sich auf dem gemeinsamen Stand der *this
Original:
A future referring to the shared state of *this
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.
[Bearbeiten]Ausnahmen
std::future_error auf den folgenden Bedingungen:
Original:
std::future_error on the following conditions:
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 hat keinen gemeinsamen Staat. Der Fehler Kategorie wird no_state gesetzt .Original:*this has no shared state. The error category is set to no_state.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
get_future()
bereits auf ein Versprechen mit der gleichen gemeinsamen Staat als *this aufgerufen wurde. Der Fehler Kategorie wird future_already_retrieved gesetzt .Original:get_future()
has already been called on a promise with the same shared state as *this. The error category is set to future_already_retrieved.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.