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)> Class Template Reference

Public Types

typedef void(* Signature) (A0)
 
typedef void(* Function) (typename Parameters::template Parameter< A0, 0 >::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 >
sauce::internal::ApplyVoidFunction< Parameters, void(*)(A0)>::ApplyVoidFunction ( Function  function)
inline
246 :
247 function(function) {}

Member Function Documentation

◆ apply()

template<typename Parameters , typename A0 >
template<typename Passed >
void sauce::internal::ApplyVoidFunction< Parameters, void(*)(A0)>::apply ( Passed  passed)
inline
254 {
255 function(
256 (typename Parameters::template Parameter<A0, 0>()).template yield<Passed>(passed));
257 }

◆ arity()

template<typename Parameters , typename A0 >
static int sauce::internal::ApplyVoidFunction< Parameters, void(*)(A0)>::arity ( )
inlinestatic
249 {
250 return 1;
251 }

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