Quick Links: |
#include <bdlf_memfn.h>
Static Public Member Functions | |
template<class PROTOTYPE > | |
static MemFn< PROTOTYPE > | memFn (PROTOTYPE func) |
template<class PROTOTYPE , class INSTANCE > | |
static MemFnInstance < PROTOTYPE, INSTANCE > | memFn (PROTOTYPE func, const INSTANCE &object) |
The methods provided in this utility are used for constructing MemFn
and MemFnInstance
objects from function pointers.
static MemFn<PROTOTYPE> bdlf::MemFnUtil::memFn | ( | PROTOTYPE | func | ) | [static] |
Return a MemFn
member function wrapper that encapsulates the specified func
member function pointer of the parameterized PROTOTYPE
.
static MemFnInstance<PROTOTYPE, INSTANCE> bdlf::MemFnUtil::memFn | ( | PROTOTYPE | func, | |
const INSTANCE & | object | |||
) | [static] |
Return a MemFnInstance
member function wrapper that encapsulates the specified func
member function pointer of the parameterized PROTOTYPE
and the specified object
instance of the parameterized INSTANCE
type.