aimstil  5.0.5
til::WrapFunctorForPairs< TFunctor, TOutput > Class Template Reference

Wrap functors so that it can accept pairs as input – it then apply the functor on the second argument. More...

#include <cathier/SparseVector.h>

Public Types

typedef TOutput return_type
 

Public Member Functions

 WrapFunctorForPairs ()
 
template<typename T1 , typename T2 >
TOutput operator() (T1 x1, T2 x2)
 

Detailed Description

template<typename TFunctor, typename TOutput = typename TFunctor::result_type>
class til::WrapFunctorForPairs< TFunctor, TOutput >

Wrap functors so that it can accept pairs as input – it then apply the functor on the second argument.

Definition at line 116 of file SparseVector.h.

Member Typedef Documentation

◆ return_type

template<typename TFunctor , typename TOutput = typename TFunctor::result_type>
typedef TOutput til::WrapFunctorForPairs< TFunctor, TOutput >::return_type

Definition at line 120 of file SparseVector.h.

Constructor & Destructor Documentation

◆ WrapFunctorForPairs()

template<typename TFunctor , typename TOutput = typename TFunctor::result_type>
til::WrapFunctorForPairs< TFunctor, TOutput >::WrapFunctorForPairs ( )
inline

Definition at line 136 of file SparseVector.h.

Member Function Documentation

◆ operator()()

template<typename TFunctor , typename TOutput = typename TFunctor::result_type>
template<typename T1 , typename T2 >
TOutput til::WrapFunctorForPairs< TFunctor, TOutput >::operator() ( T1  x1,
T2  x2 
)
inline

Definition at line 157 of file SparseVector.h.


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