std::shared_future::valid
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> bool valid() const; |
(seit C++11) | |
Prüft, ob das Future einen Zustand mit einem Promise teilt. Dies ist nur der Fall für Futures die durch
std::promise::get_future(), std::packaged_task::get_future() oder std::async() entstanden sind, bis das erste Mal get() aufgerufen wird .Original:
Checks if the future refers to a state shared with a promise. This is the case only for futures returned by
std::promise::get_future(), std::packaged_task::get_future() or std::async() until the first time get() is 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.
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.
Rückgabewert
true wenn sich *this auf einen gemeinsamen Zustand bezieht, sonst false .Original:
true if *this refers to a shared state, otherwise false.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.
Ausnahmen
Beispiel
| This section is incomplete Reason: no example |
Siehe auch
wartet darauf dass das Ergebnis verfügbar wird Original: waits for the result to become available The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |