Loki  0.1.7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups
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.

\par Usage

    - free functions: e.g.@code 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: