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

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

Description

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

Closing a function over its arguments.

This is a small usage example or spin-off, having almost the same effect than invoking std::bind(). The notable difference is that the function arguments for creating the closure are passed in as one tuple compound.

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

Public Types

typedef void argument_type
 
typedef Ret result_type
 for STL use
 

Public Member Functions

 FunctionClosure (SIG &f, Tuple< Args > &arg)
 
 FunctionClosure (function< SIG > const &f, Tuple< Args > &arg)
 
Ret operator() ()
 

Private Types

typedef _Fun< SIG >::Args Args
 
typedef _Fun< SIG >::Ret Ret
 

Private Attributes

function< Ret(void)> closure_
 
+ Collaboration diagram for FunctionClosure< SIG >:

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