名前空間
変種
操作

「cpp/thread/future errc」の版間の差分

提供: cppreference.com
< cpp‎ | thread
(Translated from the English version using Google Translate)
 
(1版:Translate from the English version)

2012年10月30日 (火) 20:44時点における版

 
 
スレッドサポートライブラリ
スレッド
(C++11)
(C++20)
(C++20)
this_thread 名前空間
(C++11)
(C++11)
(C++11)
相互排他
(C++11)
汎用ロック管理
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
条件変数
(C++11)
セマフォ
ラッチとバリア
(C++20)
(C++20)
フューチャー
(C++11)
(C++11)
(C++11)
(C++11)
future_errc
(C++11)
 
std::future_errc
非メンバクラス
ヘルパークラス
 
Defined in header <ios>
enum class future_errc {

    broken_promise,
    future_already_retrieved,
    promise_already_satisfied,
    no_state

};
(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
(関数)

も参照してください

テンプレート:cpp/error/dcl list error codeテンプレート:cpp/error/dcl list error condition