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 열거형으로 식별함
(클래스 템플릿)