Lumiera  0.pre.03
»edit your freedom«
TupleApplicator< SIG > Class Template Reference

#include "lib/meta/function-closure.hpp"

Description

template<typename SIG>
class lib::meta::func::TupleApplicator< SIG >

Closure-creating template.

The instance is linked (reference) to a given concrete argument tuple. A functor with a matching signature may then either be closed over this argument values, or even be invoked right away with theses arguments.

Warning
we take functor objects and parameters by reference

Definition at line 487 of file function-closure.hpp.

Public Member Functions

 TupleApplicator (Tuple< Args > &args)
 
BoundFunc bind (SIG &f)
 
BoundFunc bind (function< SIG > const &f)
 
Ret operator() (SIG &f)
 
Ret operator() (function< SIG > &f)
 

Private Types

enum  { ARG_CNT = count<typename Args::List>::value }
 
using Args = typename _Fun< SIG >::Args
 
using BoundFunc = function< Ret()>
 
using Ret = typename _Fun< SIG >::Ret
 

Private Attributes

Tuple< Args > & params_
 storing a ref to the parameter tuple
 
+ Collaboration diagram for TupleApplicator< SIG >:

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