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

Compile time check for the void data type.This type trait tests whether or not the given template parameter is of type void (ignoring the cv-qualifiers). In case the type is of type void, 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 <IsVoid.h>

Inherits blaze::IntegralConstant< T, N >.

Detailed Description

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

Compile time check for the void data type.

This type trait tests whether or not the given template parameter is of type void (ignoring the cv-qualifiers). In case the type is of type void, 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::IsVoid<void>::value // Evaluates to 'true'
blaze::IsVoid<const void>::Type // Results in TrueType
blaze::IsVoid<const volatile void> // Is derived from TrueType
blaze::IsVoid<int>::value // Evaluates to 'false'
blaze::IsVoid<const char>::Type // Results in FalseType
blaze::IsVoid<volatile float> // Is derived from FalseType

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