Blaze 3.9
blaze::IsIntegral< T > Struct Template Reference

Compile time check for integral data types. More...

#include <IsIntegral.h>

Inherits blaze::IntegralConstant< T, N >.

Detailed Description

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

Compile time check for integral data types.

This type trait tests whether or not the given template parameter is an integral data type. In case the type is an integral data 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.

blaze::IsIntegral<int>::value // Evaluates to 'true'
blaze::IsIntegral<const char>::Type // Results in TrueType (char is an integral data type)
blaze::IsIntegral<volatile short> // Is derived from TrueType
blaze::IsIntegral<float>::value // Evaluates to 'false'
blaze::IsIntegral<volatile long double> // Is derived from FalseType
Compile time check for integral data types.
Definition: IsIntegral.h:77

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