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

Name

Description

func

member function pointer to wrap

object

instance on which the member function is invocable

Created with MrDocs