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

Compile time type check. More...

#include <IsReference.h>

Inherits blaze::IntegralConstant< T, N >.

Detailed Description

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

Compile time type check.

This class tests whether the given template parameter T is a reference type (including references to functions). If it is a reference 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::IsReference<int&>::value // Evaluates to 'true'
blaze::IsReference<int (&)(long)> // Is derived from TrueType
blaze::IsReference<int>::value // Evaluates to 'false'
blaze::IsReference<double*>::Type // Results in FalseType
blaze::IsReference<int (MyClass::*)(long)> // Is derived from FalseType
Compile time type check.
Definition: IsReference.h:77

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