名前空間
変種
操作

std::future_errc

提供: cppreference.com
< cpp‎ | thread
2013年7月2日 (火) 16:05時点におけるP12bot (トーク | 投稿記録)による版

 
 
スレッドサポートライブラリ
スレッド
(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]