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

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

Inherits HasLogHelper< T >.

Detailed Description

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

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

This type trait provides the information whether the log() 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 NoLog {}; // Definition of a type without the log() operation
blaze::HasLog< int >::value // Evaluates to 1
blaze::HasLog< DynamicVector<float> >::Type // Results in TrueType
blaze::HasLog< DynamicMatrix<double> > // Is derived from TrueType
blaze::HasLog< NoLog >::Type // Results in FalseType
blaze::HasLog< NoLog > // Is derived from FalseType

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