「cpp/thread/future errc」の版間の差分
提供: cppreference.com
TranslationBot (トーク | 投稿記録) (Translated from the English version using Google Translate) |
細 (1版:Translate from the English version) |
2012年10月30日 (火) 20:44時点における版
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
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 |
ヘルパークラス
extends the type trait std::is_error_code_enum to identify future error codes (クラステンプレート) |
非メンバ関数
constructs a future error code (関数) | |
constructs a future error_condition (関数) |
例
This section is incomplete Reason: no example |