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

Compile time type check. More...

#include <IsClass.h>

Inherits blaze::IntegralConstant< T, N >.

Detailed Description

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

Compile time type check.

The IsClass type trait tests whether or not the given template parameter is a (possibly cv-qualified) class type. In case the given data type is a class type, the value member constant is set to true, the nested type definition Type is set to TrueType, and the class derives from TrueType. Otherwise value is set to false, Type is FalseType and the class derives from FalseType.

class MyClass {};
blaze::IsClass<MyClass>::value // Evaluates to 'true'
blaze::IsClass<std::string volatile> // Is derived from TrueType
blaze::IsClass<int>::value // Evaluates to 'false' (int is a built-in data type)
blaze::IsClass<MyClass&>::Type // Results in FalseType
blaze::IsClass<MyClass*> // Is derived from FalseType
Compile time type check.
Definition: IsClass.h:79

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