名前空間
変種
操作

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

提供: cppreference.com
< cpp‎ | thread
(r2.7.3) (ロボットによる 追加: de, en, es, fr, it, pt, ru, zh)
(Use {{lc}}. Update links. Various fixes.)
2行: 2行:
 
{{cpp/title|future_errc}}
 
{{cpp/title|future_errc}}
 
{{cpp/thread/future_errc/navbar}}
 
{{cpp/thread/future_errc/navbar}}
{{ddcl list begin}}
+
{{begin}}
{{ddcl list header | ios}}
+
{{header | ios}}
{{ddcl list item | notes={{mark since c++11}} | 1=
+
{{| =c++11 | 1=
 
enum class future_errc {
 
enum class future_errc {
 
     broken_promise,
 
     broken_promise,
12行: 12行:
 
};
 
};
 
}}
 
}}
{{ddcl list end}}
+
{{end}}
  
The scoped enumeration {{tt|std::future_errc}} defines the error codes reported by {{c|std::future}} and related classes in {{c|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 {{tt|std::future_errc}} are implicitly convertible to {{c|std::error_code}}.
+
The scoped enumeration {{tt|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 {{tt|std::future_errc}} are implicitly convertible to {{|std::error_code}}.
  
 
===メンバー定数===
 
===メンバー定数===
{{dcl list begin}}
+
{{begin}}
{{dcl list hitem |{{tr| 定数 | Constant }}| Explanation}}
+
{{hitem |{{tr| 定数 | Constant }}| Explanation}}
{{dcl list item | {{tt|broken_promise}} |  the asynchronous task abandoned its shared state }}
+
{{| {{tt|broken_promise}} |  the asynchronous task abandoned its shared state }}
{{dcl list item | {{tt|future_already_retrieved}} | the contents of shared state were already accessed through {{c|std::future}} }}
+
{{| {{tt|future_already_retrieved}} | the contents of shared state were already accessed through {{|std::future}} }}
{{dcl list item | {{tt|promise_already_satisfied}} |  attempt to store a value in the shared state twice }}
+
{{| {{tt|promise_already_satisfied}} |  attempt to store a value in the shared state twice }}
{{dcl list item | {{tt|no_state}} | attempt to access {{c|std::promise}} or {{c|std::future}} without an associated shared state }}
+
{{| {{tt|no_state}} | attempt to access {{|std::promise}} or {{|std::future}} without an associated shared state }}
{{dcl list end}}
+
{{end}}
  
 
===ヘルパークラス===
 
===ヘルパークラス===
{{dcl list begin}}
+
{{begin}}
{{dcl list tclass | cpp/thread/future_errc/is_error_code_enum  | title=is_error_code_enum{{dcl small|<std::future_errc>}}| notes={{mark c++11}} | extends the type trait {{c|std::is_error_code_enum}} to identify future error codes}}
+
{{tclass | cpp/thread/future_errc/is_error_code_enum  | title=is_error_code_enum{{small|<std::future_errc>}}| notes={{mark c++11}} | extends the type trait {{|std::is_error_code_enum}} to identify future error codes}}
{{dcl list end}}
+
{{end}}
  
 
===非メンバ関数===
 
===非メンバ関数===
{{dcl list begin}}
+
{{begin}}
{{dcl list fun | cpp/thread/future_errc/make_error_code | title=make_error_code{{dcl small|(std::future_errc)}} | notes={{mark c++11}} | constructs a future error code}}
+
{{fun | cpp/thread/future_errc/make_error_code | title=make_error_code{{small|(std::future_errc)}} | notes={{mark c++11}} | constructs a future error code}}
{{dcl list fun | cpp/thread/future_errc/make_error_condition  | title=make_error_condition{{dcl small|(std::future_errc)}} | notes={{mark c++11}} | constructs a future error_condition}}
+
{{fun | cpp/thread/future_errc/make_error_condition  | title=make_error_condition{{small|(std::future_errc)}} | notes={{mark c++11}} | constructs a future error_condition}}
{{dcl list end}}
+
{{end}}
  
 
===例===
 
===例===
44行: 44行:
  
 
===も参照してください===
 
===も参照してください===
{{dcl list begin}}
+
{{begin}}
{{dcl list template | cpp/error/dcl list error_code}}
+
{{| cpp/error/error_code}}
{{dcl list template | cpp/error/dcl list error_condition}}
+
{{| cpp/error/error_condition}}
{{dcl list end}}
+
{{end}}
  
 
[[de:cpp/thread/future errc]]
 
[[de:cpp/thread/future errc]]

2013年7月2日 (火) 16:05時点における版

 
 
スレッドサポートライブラリ
スレッド
(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
非メンバクラス
ヘルパークラス
 
ヘッダ <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
(関数)

も参照してください

プラットフォーム依存のエラーコードを保持します
(クラス) [edit]
移植性のあるエラーコードを保持します
(クラス) [edit]