Expression Templates Library (ETL)
Static Public Member Functions | List of all members
etl::optimizable< Expr > Struct Template Reference

Simple traits to test if an expression is optimizable. More...

#include <optimizer.hpp>

Static Public Member Functions

static bool is ([[maybe_unused]] const Expr &expr)
 Indicates if the given expression is optimizable or not. More...
 
static bool is_deep ([[maybe_unused]] const Expr &expr)
 Indicates if the given expression or one of its sub expressions is optimizable or not. More...
 

Detailed Description

template<typename Expr>
struct etl::optimizable< Expr >

Simple traits to test if an expression is optimizable.

The default traits implementation return false for each expression. The traits should be specialized for each optimizable expression.

Member Function Documentation

◆ is()

template<typename Expr >
static bool etl::optimizable< Expr >::is ( [[maybe_unused] ] const Expr &  expr)
inlinestatic

Indicates if the given expression is optimizable or not.

Parameters
exprThe expression to test
Returns
true if the expression is optimizable, false otherwise

◆ is_deep()

template<typename Expr >
static bool etl::optimizable< Expr >::is_deep ( [[maybe_unused] ] const Expr &  expr)
inlinestatic

Indicates if the given expression or one of its sub expressions is optimizable or not.

Parameters
exprThe expression to test
Returns
true if the expression or one of its sub expressions is optimizable, false otherwise

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