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

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

#include <IsArithmetic.h>

Inherits blaze::IntegralConstant< T, N >.

Detailed Description

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

Compile time check for arithmetic data types.

This type trait tests whether or not the given template parameter is a (possibly cv-qualified) arithmetic (integral or floating point) data type. In case the type is an arithmetic 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.

class MyClass {};
blaze::IsArithmetic<int>::value // Evaluates to 'true'
blaze::IsArithmetic<short volatile> // Is derived from TrueType
blaze::IsArithmetic<void>::value // Evaluates to 'false'
blaze::IsArithmetic<int*>::value // Evaluates to 'false'
blaze::IsArithmetic<int&>::Type // Results in FalseType
blaze::IsArithmetic<MyClass> // Is derived from FalseType
Compile time check for arithmetic data types.
Definition: IsArithmetic.h:80

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