blaze::IsInteger< T > Struct Template Reference

Compile time check for integer types.This type trait tests whether or not the given template parameter is an integer type (i.e., either (signed) int or unsigned int, possibly cv-qualified). In case the type is an integer type (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 <IsInteger.h>

Inherits FalseType.

Detailed Description

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

Compile time check for integer types.

This type trait tests whether or not the given template parameter is an integer type (i.e., either (signed) int or unsigned int, possibly cv-qualified). In case the type is an integer type (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::IsInteger<const long>::Type // Results in FalseType
blaze::IsInteger<volatile float> // Is derived from FalseType

Note the difference between the IsInteger and IsIntegral type traits: Whereas the IsInteger type trait specifically tests whether the given data type is either int or unsigned int (possibly cv-qualified), the IsIntegral type trait tests whether the given template argument is an integral data type (char, short, int, long, etc.).


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