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

Compile time type check. More...

#include <IsValid.h>

Inherits blaze::IntegralConstant< T, N >.

Detailed Description

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

Compile time type check.

This class tests whether the given template parameter is a valid or invalid data type (i.e. if the type is the INVALID_TYPE). If T is not the INVALID_TYPE class 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::IsValid<int>::value // Evaluates to 'true'
blaze::IsValid<float const>::Type // Results in TrueType
blaze::IsValid<double volatile> // Is derived from TrueType
blaze::IsValid<INVALID_TYPE>::value // Evaluates to 'false'
blaze::IsValid<INVALID_TYPE volatile> // Is derived from FalseType
Compile time type check.
Definition: IsValid.h:77

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