std::future_errc – cppreference.com
Aus cppreference.com
<metanoindex/>
<tbody> </tbody>
| definiert in Header <ios> |
||
|
|
(seit C++11) | |
The scoped enumeration std::future_errc defines the error codes reported by std::future and related classes in std::future_error exception objects. Only four error codes are required, although the implementation may define additional error codes. Because the appropriate specialization of std::is_error_code_enum is provided, values of type std::future_errc are implicitly convertible to std::error_code.
Mitglied Konstanten
Constant Original: Constant The text has been machine-translated via Google Translate. |
Explanation |
broken_promise
|
the asynchronous task abandoned its shared state |
future_already_retrieved
|
the contents of shared state were already accessed through std::future |
promise_already_satisfied
|
attempt to store a value in the shared state twice |
no_state
|
attempt to access std::promise or std::future without an associated shared state |
Helper-Klassen
Non-Member-Funktionen
Beispiel
Siehe auch
hält einen plattformabhängigen Fehlercode Original: holds a platform-dependent error code The text has been machine-translated via Google Translate. (Klasse) [edit] | |
hält einen tragbaren Fehlercode Original: holds a portable error code The text has been machine-translated via Google Translate. (Klasse) [edit] | |