std::is_error_condition_enum
ja.cppreference.net より
| ヘッダ <system_error>
|
||
template< class T >
struct is_error_condition_enum;
|
で定義 (C++11以上) | |
T がエラー状態の列挙型(例: std::errc)である場合、このテンプレートはメンバ定数 value を true として提供します。それ以外の型の場合、value は false です。
このテンプレートは、プログラム定義型に対して特殊化することで、その型が std::error_condition への暗黙変換に適していることを示すことができます。
ヘルパー変数テンプレート
|
template
<
class
T
>
inline
constexpr
bool
is_error_condition_enum_v
=
|
(C++17以降) | |
std::integral_constantから継承
メンバ定数
|
value
[static]
|
true
Tがエラー条件列挙型の場合、
false
それ以外の場合
(public static member constant) |
メンバ関数
|
operator bool
|
オブジェクトを
bool
に変換し、
value
を返す
(public member function) |
|
operator()
(C++14)
|
value
を返す
(public member function) |
メンバ型
| 型 | 定義 |
value_type
|
bool |
type
|
std:: integral_constant < bool , value > |
関連項目
|
(C++11)
|
クラスを
error_code
列挙型として識別する
(クラステンプレート) |