blaze::IsSame< A, B > Struct Template Reference

Type relationship analysis.This class tests if the two data types A and B are equal. For this type comparison, the cv-qualifiers of both data types are ignored. If A and B are the same data type (ignoring the cv-qualifiers), then 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 <IsSame.h>

Inherits blaze::IntegralConstant< T, N >.

Detailed Description

template<typename A, typename B>
struct blaze::IsSame< A, B >

Type relationship analysis.

This class tests if the two data types A and B are equal. For this type comparison, the cv-qualifiers of both data types are ignored. If A and B are the same data type (ignoring the cv-qualifiers), then 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::IsSame<int,int>::value // Evaluates to 'true'
blaze::IsSame<int,const int>::Type // Results in TrueType
blaze::IsSame<float,volatile float> // Is derived from TrueType
blaze::IsSame<char,wchar_t>::value // Evaluates to 'false'
blaze::IsSame<int,double> // Is derived from FalseType

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