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

Compile time type check. More...

#include <IsArray.h>

Inherits blaze::IntegralConstant< T, N >.

Detailed Description

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

Compile time type check.

The IsArray type trait tests whether or not the given template parameter is an array type. In case the given data type is an array type, the value member constant is set to true, the nested type definition Type is set to TrueType, and the class derives from TrueType. Otherwise value is set to false, Type is FalseType and the class derives from FalseType.

blaze::IsArray< int[3] >::value // Evaluates to 'true'
blaze::IsArray< int[][3] > // Is derived from TrueType
blaze::IsArray< int >::value // Evaluates to 'false'
blaze::IsArray< int const* >::Type // Results in FalseType
blaze::IsArray< std::vector<int> > // Is derived from FalseType
Compile time type check.
Definition: IsArray.h:77

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