blaze::IsUnion< T > Struct Template Reference

Compile time check for union data types.This type trait tests whether or not the given template parameter is a union data type. In case the type is a union, the value member constant is set o 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 <IsUnion.h>

Inherits blaze::IntegralConstant< T, N >.

Detailed Description

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

Compile time check for union data types.

This type trait tests whether or not the given template parameter is a union data type. In case the type is a union, the value member constant is set o 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.

union A {
// ...
};
blaze::IsUnion<A>::value // Evaluates to 'true'
blaze::IsUnion<A const>::Type // Results in TrueType
blaze::IsUnion<A volatile> // Is derived from TrueType
blaze::IsUnion<int>::value // Evaluates to 'false'
blaze::IsUnion<double>::Type // Results in FalseType
blaze::IsUnion<std::string> // Is derived from FalseType

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