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.
    Function<int(int,int)> f(&freeFunction);
  • member functions: e.g
    Function<int()> f(&object,&ObjectType::memberFunction);

see also test/Function/FunctionTest.cpp (the modified test program from boost)


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