blaze::IsCharacter< T > Struct Template Reference

Compile time check for character types.This type trait tests whether or not the given template parameter is a character type (i.e., either char, signed char, unsigned char, or wchar_t, possibly cv-qualified). In case the type is a character type (ignoring the cv-qualifiers), 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 <IsCharacter.h>

Inherits blaze::IntegralConstant< T, N >.

Detailed Description

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

Compile time check for character types.

This type trait tests whether or not the given template parameter is a character type (i.e., either char, signed char, unsigned char, or wchar_t, possibly cv-qualified). In case the type is a character type (ignoring the cv-qualifiers), 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.

blaze::IsCharacter<char>::value // Evaluates to 'true'
blaze::IsCharacter<const volatile wchar_t> // Is derived from TrueType
blaze::IsCharacter<const int>::Type // Results in FalseType
blaze::IsCharacter<volatile long> // Is derived from FalseType

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