[#BloombergLP-bdlf-MemFnUtil-memFn-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlf.adoc[bdlf]::xref:BloombergLP/bdlf/MemFnUtil.adoc[MemFnUtil]::memFn :relfileprefix: ../../../ :mrdocs: Return a `MemFnInstance` wrapper for the specified `func` and `object`. == Synopsis Declared in `<bdlf_memfn.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class PROTOTYPE, class INSTANCE> static xref:BloombergLP/bdlf/MemFnInstance.adoc[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 [cols="1,4"] |=== | Name| Description | *func* | member function pointer to wrap | *object* | instance on which the member function is invocable |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#