aimstil  5.0.5
til::expr::functor::Wrap< TFunctor > Class Template Reference

Wrap a standard functor inside a detemplated functor. More...

#include <til/TExprBasicFunctors.h>

Inheritance diagram for til::expr::functor::Wrap< TFunctor >:
Collaboration diagram for til::expr::functor::Wrap< TFunctor >:

Classes

struct  TypeStruct
 

Public Member Functions

 Wrap (TFunctor &f)
 

Detailed Description

template<typename TFunctor>
class til::expr::functor::Wrap< TFunctor >

Wrap a standard functor inside a detemplated functor.

The operation at hand here is different from detemplation. Detemplation is a mean to reuse pure templated predicates as genuine template expression functors. The resulting detemplated functors are defined online, inside template expressions. Functor wrapping, on the other hand, deals with functors (usually, non-stateless functors) that are defined beforehand and that we wish to use in a template expression.

Definition at line 272 of file TExprBasicFunctors.h.

Constructor & Destructor Documentation

◆ Wrap()

template<typename TFunctor >
til::expr::functor::Wrap< TFunctor >::Wrap ( TFunctor &  f)
inline

Definition at line 281 of file TExprBasicFunctors.h.


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