std::future_errc
|
|
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. |
| Defined in header <ios>
|
||
| enum class future_errc { broken_promise, |
(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.
目錄 |
[编辑] 。會員常數。
| 。常數。
Original: Constant The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
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類。
| extends the type trait std::is_error_code_enum to identify future error codes (類模板) | |
[编辑] 。非成員函數。
| constructs a future error code (函數) | |
| constructs a future error_condition (函數) | |
[编辑] 。為例。
| 本節是不完整的 原因: no example |
[编辑] 。另請參閱。
| (C++11) |
持有與平台相關的錯誤代碼 Original: holds a platform-dependent error code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (類) |
| (C++11) |
持有攜帶型的錯誤代碼 Original: holds a portable error code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (類) |