blaze::IsObject< T > Struct Template Reference

Compile time type check.This class tests whether the given template parameter T is an object type. All types are considered object types except references, void, and function types. If T is an object 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 <IsObject.h>

Inherits Type< T >.

Detailed Description

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

Compile time type check.

This class tests whether the given template parameter T is an object type. All types are considered object types except references, void, and function types. If T is an object 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::IsObject<int>::value // Evaluates to 1
blaze::IsObject<int*>::Type // Results in TrueType
blaze::IsObject<int (*)(void)> // Is derived from TrueType
blaze::IsObject<int (MyClass::*)(void)const> // Also derived from TrueType
blaze::IsObject<const void>::Type // Results in FalseType
blaze::IsObject<int (double)> // Is derived from FalseType

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