Blaze  3.6
blaze::HasTanh< T, typename > Struct Template Reference

Availability of the tanh() operation for the given data types.This type trait provides the information whether the tanh() 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 <HasTanh.h>

Inherits HasTanhHelper< T >.

Detailed Description

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

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

This type trait provides the information whether the tanh() 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 NoTanh {}; // Definition of a type without the tanh() operation
blaze::HasTanh< DynamicVector<float> >::Type // Results in TrueType
blaze::HasTanh< DynamicMatrix<double> > // Is derived from TrueType
blaze::HasTanh< NoTanh >::Type // Results in FalseType
blaze::HasTanh< NoTanh > // Is derived from FalseType

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