std::is_error_condition_enum
From cppreference.com
< cpp | error | error condition
| ヘッダー <system_error> で定義 |
||
| template< class T > struct is_error_condition_enum; |
(C++11以降) | |
T がエラー条件 enum(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] |
T がエラー条件 enum の場合は true、それ以外の場合は false(公開静的メンバ定数) |
メンバ関数
| 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列挙型として識別する(クラステンプレート) |