Blaze  3.6
blaze::IsUniform< T > Struct Template Reference

Compile time check for uniform vectors and matrices.This type trait tests whether or not the given template parameter is a uniform vector or matrix type (i.e. a data type that is guaranteed to be a uniform vector or matrix at compile time). In case the type is a uniform vector or matrix 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. More...

#include <IsUniform.h>

Inherits IsUniformHelper< T >.

Detailed Description

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

Compile time check for uniform vectors and matrices.

This type trait tests whether or not the given template parameter is a uniform vector or matrix type (i.e. a data type that is guaranteed to be a uniform vector or matrix at compile time). In case the type is a uniform vector or matrix 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::IsUniform< UniformVector<int> >::value // Evaluates to 1
blaze::IsUniform< const UniformMatrix<float> >::Type // Results in TrueType
blaze::IsUniform< DynamicVector<int> >::value // Evaluates to 0
blaze::IsUniform< const DynamicMatrix<float> >::Type // Results in FalseType

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