41 #ifndef HH_SENF_Utils_membind_ 42 #define HH_SENF_Utils_membind_ 1 45 #include <boost/bind.hpp> 46 #include <boost/function.hpp> 47 #include <senf/config.hh> 71 #define SENF_FNP(ret, fn, args) \ 72 static_cast<ret (*) args>(& fn) 100 #define SENF_MEMFNP(ret, cls, fn, args) \ 101 static_cast<ret (cls::*) args>(& cls :: fn) 137 #define SENF_MEMBINDFNP(ret, cls, fn, args) \ 138 senf::membind(SENF_MEMFNP(ret, cls, fn, args), this) 143 #include <senf/Utils/impl/membind.hh> 147 #include <senf/Utils/impl/membind.hh> 165 template <
typename R,
typename T,
typename Args>
166 boost::function<R (Args)>
membind(R (T::* fn)( Args ), T * ob);
boost::function< R(Args)> membind(R(T::*fn)(Args), T *ob)
Build bound member function object.