BloombergLP::bdlf::MemFnUtil::memFn

Return a MemFnInstance wrapper for the specified func and object.

Synopsis

Declared in <bdlf_memfn.h>

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

Description

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.

Return Value

MemFnInstance wrapper encapsulating func and object

Parameters

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