Loki  0.1.7
Loki::Function< R > Struct Template Reference

#include <Function.h>

Detailed Description

template<class R = void()>
struct Loki::Function< R >

Allows a boost/TR1 like usage of Functor.

Usage
- free functions: e.g.  \code Function<int(int,int)> f(&freeFunction);
                        \endcode
- member functions: e.g \code Function<int()> f(&object,&ObjectType::memberFunction); 
                        \endcode
see also test/Function/FunctionTest.cpp (the modified test program from boost)

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