◐ Shell
clean mode source ↗

std::future::valid – cppreference.com

Aus cppreference.com

<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()or share() aufgerufen wird .

Original:

The text has been machine-translated via Google Translate.
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.

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.

Ausnahmen

Beispiel

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) [edit]