![]() |
Blaze 3.9
|
Compile time check for integer types. More...
#include <IsInteger.h>
Inherits blaze::IntegralConstant< T, N >.
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 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.
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.).