Namespaces
Variants

std:: is_error_condition_enum

From cppreference.net
Utilities library
ヘッダーで定義 <system_error>
template < class T >
struct is_error_condition_enum ;
(C++11以降)

T がエラー条件列挙型(例えば std::errc など)の場合、このテンプレートは value メンバ定数を true に設定します。他のあらゆる型に対しては、 value false となります。

このテンプレートは program-defined type に対して特殊化され、その型が std::error_condition の暗黙変換の対象となることを示すために使用できます。

目次

ヘルパー変数テンプレート

template < class T >

inline constexpr bool is_error_condition_enum_v =

is_error_condition_enum < T > :: value ;
(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 >

関連項目

クラスを error_code 列挙型として識別する
(クラステンプレート)