ALPS MPS Codes
Reference documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Macros
function_objects.h File Reference
#include <alps/numeric/conj.hpp>

Go to the source code of this file.

Classes

struct  utils::constant< T >
 
struct  utils::get_first
 
struct  utils::get_second
 

Namespaces

 utils
 

Macros

#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); } };
 

Macro Definition Documentation

#define DEFINE_FUNCTION_OBJECT (   name,
  return_type,
  arg_type 
)    struct functor_##name { template<class T> return_type operator() (arg_type t) { return name(t); } };

Definition at line 34 of file function_objects.h.

#define DEFINE_VOID_FUNCTION_OBJECT (   name,
  arg_type 
)    struct functor_##name { template<class T> void operator() (arg_type t) { name(t); } };

Definition at line 37 of file function_objects.h.