Blaze  3.6
blaze::IsEnum< T > Struct Template Reference

Compile time check for complete enumeration types.This type trait tests whether or not the given template parameter is an enumeration type. In case the type is an enumeration type, the value member constant is set to true, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to false, Type is FalseType, and the class derives from FalseType. More...

#include <IsEnum.h>

Inherits blaze::IntegralConstant< T, N >.

Detailed Description

template<typename T>
struct blaze::IsEnum< T >

Compile time check for complete enumeration types.

This type trait tests whether or not the given template parameter is an enumeration type. In case the type is an enumeration type, the value member constant is set to true, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to false, Type is FalseType, and the class derives from FalseType.

enum A {};
enum B : int {};
enum class C {};
class D {};
blaze::IsEnum<A>::value // Evaluates to 'true'
blaze::IsEnum<const B>::Type // Results in TrueType
blaze::IsEnum<volatile C> // Is derived from TrueType
blaze::IsEnum<int>::value // Evaluates to 'false'
blaze::IsEnum<double>::Type // Results in FalseType
blaze::IsEnum<D> // Is derived from FalseType

The documentation for this struct was generated from the following file: