change documentation of function
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@365 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
aa3a852a7d
commit
d26ecb6716
2 changed files with 8 additions and 3 deletions
|
@ -24,7 +24,14 @@ namespace Loki
|
|||
/// \ingroup FunctorGroup
|
||||
/// Allows a boost/TR1 like usage of Functor.
|
||||
///
|
||||
/// e.g. Functor<int,LOKI_TYPELIST_2(int,int)> becomes Function<int(int,int)>
|
||||
/// \par 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)
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
template<class R = void()>
|
||||
struct Function : public Functor<R>
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#include <boost/test/minimal.hpp>
|
||||
|
||||
#define TEST_LOKI_FUNCTION
|
||||
|
||||
#ifndef TEST_LOKI_FUNCTION
|
||||
|
||||
#include <boost/function.hpp>
|
||||
|
@ -22,7 +21,6 @@ using namespace boost;
|
|||
|
||||
#else
|
||||
|
||||
|
||||
#include <boost/ref.hpp>
|
||||
#include <loki/Function.h>
|
||||
using namespace Loki;
|
||||
|
|
Loading…
Reference in a new issue