Sauce-0.10.1
A C++ Dependency Injection Framework
Public Types | Public Member Functions | Static Public Member Functions | List of all members
sauce::internal::ApplyVoidFunction< Parameters, void(*)(A0, A1)> Class Template Reference

Public Types

typedef void(* Signature) (A0, A1)
 
typedef void(* Function) (typename Parameters::template Parameter< A0, 0 >::Type, typename Parameters::template Parameter< A1, 1 >::Type)
 

Public Member Functions

 ApplyVoidFunction (Function function)
 
template<typename Passed >
void apply (Passed passed)
 

Static Public Member Functions

static int arity ()
 

Constructor & Destructor Documentation

◆ ApplyVoidFunction()

template<typename Parameters , typename A0 , typename A1 >
sauce::internal::ApplyVoidFunction< Parameters, void(*)(A0, A1)>::ApplyVoidFunction ( Function  function)
inline
376 :
377 function(function) {}

Member Function Documentation

◆ apply()

template<typename Parameters , typename A0 , typename A1 >
template<typename Passed >
void sauce::internal::ApplyVoidFunction< Parameters, void(*)(A0, A1)>::apply ( Passed  passed)
inline
384 {
385 function(
386 (typename Parameters::template Parameter<A0, 0>()).template yield<Passed>(passed),
387 (typename Parameters::template Parameter<A1, 1>()).template yield<Passed>(passed));
388 }

◆ arity()

template<typename Parameters , typename A0 , typename A1 >
static int sauce::internal::ApplyVoidFunction< Parameters, void(*)(A0, A1)>::arity ( )
inlinestatic
379 {
380 return 2;
381 }

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