blaze::HasMult< T1, T2, typename > Struct Template Reference

Availability of a multiplication operator for the given data types.This type trait provides the information whether a multiplication operator (i.e. operator*) exists for the two given data types T1 and T2 (taking the cv-qualifiers into account). In case the operator is available, 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 <HasMult.h>

Inherits HasMultHelper< T1, T2 >.

Detailed Description

template<typename T1, typename T2, typename = void>
struct blaze::HasMult< T1, T2, typename >

Availability of a multiplication operator for the given data types.

This type trait provides the information whether a multiplication operator (i.e. operator*) exists for the two given data types T1 and T2 (taking the cv-qualifiers into account). In case the operator is available, 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::HasMult< complex<float>, complex<float> >::Type // Results in TrueType
blaze::HasMult< DynamicVector<int>, DynamicVector<int> > // Is derived from TrueType
blaze::HasMult< int, complex<float> >::value // Evaluates to 0
blaze::HasMult< complex<int>, complex<float> >::Type // Results in FalseType
blaze::HasMult< DynamicMatrix<int>, DynamicVector<int> > // Is derived from FalseType

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