BloombergLP::bdlf::MemFnUtil::memFn

memFn overloads

Synopses

Declared in <bdlf_memfn.h>

Return a MemFn wrapper for the specified func.

template<class PROTOTYPE>
static
MemFn<PROTOTYPE>
memFn(PROTOTYPE func);
» more...

Return a MemFnInstance wrapper for the specified func and object.

template<
    class PROTOTYPE,
    class INSTANCE>
static
MemFnInstance<PROTOTYPE, INSTANCE>
memFn(
    PROTOTYPE func,
    INSTANCE const& object);
» more...

Return Value

  • MemFn wrapper encapsulating func
  • MemFnInstance wrapper encapsulating func and object

Parameters

NameDescription
funcmember function pointer to wrap
objectinstance on which the member function is invocable