aimstil
5.0.5
|
A class to "detemplate" a stateless operator with a single template argument. More...
#include <til/TExprBasicFunctors.h>
Classes | |
struct | TypeStruct |
Public Member Functions | |
template<typename T > | |
TOperator< T >::result_type | operator() (const T &x) const |
template<typename T > | |
TOperator< T >::result_type | operator() (const T &x, const T &y) const |
A class to "detemplate" a stateless operator with a single template argument.
I.e. to transform a F<T> into a non-templated F that has an operator()<T>. Detemplation is necessary for template expressions: functors involved in template expressions are not type-specific. Note that to be recognized as a Genuine Detemplated Functor, a class must (1), have a templated TypeStruct, (2), have (inherit from) the label detemplatedFunctor. Actually, (2) comes from the fact that I don't know any mean to automatically check for (1) :(
Definition at line 41 of file TExprBasicFunctors.h.
|
inline |
Definition at line 54 of file TExprBasicFunctors.h.
|
inline |
Definition at line 68 of file TExprBasicFunctors.h.