blaze::HasReal< T, typename > Struct Template Reference

Availability of the real() operation for the given data types.This type trait provides the information whether the real() operation exists for the given data type T (taking the cv-qualifiers into account). In case the operation 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 <HasReal.h>

Inherits HasRealHelper< T >.

Detailed Description

template<typename T, typename = void>
struct blaze::HasReal< T, typename >

Availability of the real() operation for the given data types.

This type trait provides the information whether the real() operation exists for the given data type T (taking the cv-qualifiers into account). In case the operation 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.

struct NoReal {}; // Definition of a type without the real() operation
blaze::HasReal< DynamicVector<float> >::Type // Results in TrueType
blaze::HasReal< DynamicMatrix<double> > // Is derived from TrueType
blaze::HasReal< NoReal >::Type // Results in FalseType
blaze::HasReal< NoReal > // Is derived from FalseType

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