blaze::IsValid< T > Struct Template Reference

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 enumeration is set to 1, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to 0, Type is FalseType, and the class derives from FalseType. More...

#include <IsValid.h>

Inherits TrueType.

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 enumeration is set to 1, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to 0, Type is FalseType, and the class derives from FalseType.

blaze::IsValid<int>::value // Evaluates to 1
blaze::IsValid<float const>::Type // Results in TrueType
blaze::IsValid<double volatile> // Is derived from TrueType
blaze::IsValid<INVALID_TYPE volatile> // Is derived from FalseType

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