#include <alps/numeric/conj.hpp>
Go to the source code of this file.
|
#define | DEFINE_FUNCTION_OBJECT(name, return_type, arg_type) struct functor_##name { template<class T> return_type operator() (arg_type t) { return name(t); } }; |
|
#define | DEFINE_VOID_FUNCTION_OBJECT(name, arg_type) struct functor_##name { template<class T> void operator() (arg_type t) { name(t); } }; |
|
#define DEFINE_FUNCTION_OBJECT |
( |
|
name, |
|
|
|
return_type, |
|
|
|
arg_type |
|
) |
| struct functor_##name { template<class T> return_type operator() (arg_type t) { return name(t); } }; |
#define DEFINE_VOID_FUNCTION_OBJECT |
( |
|
name, |
|
|
|
arg_type |
|
) |
| struct functor_##name { template<class T> void operator() (arg_type t) { name(t); } }; |