blaze::RequiresEvaluation< T > Struct Template Reference

Compile time check to query the requirement to evaluate an expression.Via this type trait it is possible to determine whether a given vector or matrix expression type requires an intermediate evaluation in the context of a compound expression. In case the given type requires an evaluation, 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 <RequiresEvaluation.h>

Inherits blaze::IntegralConstant< T, N >.

Detailed Description

template<typename T>
struct blaze::RequiresEvaluation< T >

Compile time check to query the requirement to evaluate an expression.

Via this type trait it is possible to determine whether a given vector or matrix expression type requires an intermediate evaluation in the context of a compound expression. In case the given type requires an evaluation, 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.

Note
that this type trait can only be applied to Blaze vector or matrix expressions or any other type providing the nested type CompositeType. In case this nested type is not available, applying the type trait results in a compile time error!

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