All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
blaze::IsBoolean< T > Struct Template Reference

Compile time check for boolean types.This type trait tests whether or not the given template parameter is of boolean type. In case the type is a boolean (ignoring the cv-qualifiers), the value member enumeration is set to 1, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to 0, Type is FalseType, and the class derives from FalseType. More...

#include <IsBoolean.h>

Inherits FalseType.

Detailed Description

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

Compile time check for boolean types.

This type trait tests whether or not the given template parameter is of boolean type. In case the type is a boolean (ignoring the cv-qualifiers), the value member enumeration is set to 1, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to 0, Type is FalseType, and the class derives from FalseType.

blaze::IsBoolean<const bool>::Type // Results in TrueType
blaze::IsBoolean<const volatile bool> // Is derived from TrueType
blaze::IsBoolean<float>::value // Evaluates to 0 (float is not a boolean)
blaze::IsBoolean<const int>::Type // Results in FalseType
blaze::IsBoolean<volatile short> // Is derived from FalseType

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