[#BloombergLP-bdlf-MemFnInstance-2constructor-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlf.adoc[bdlf]::xref:BloombergLP/bdlf/MemFnInstance.adoc[MemFnInstance]::MemFnInstance :relfileprefix: ../../../ :mrdocs: Create a wrapper around the specified member function and object. == Synopsis Declared in `<bdlf_memfn.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- MemFnInstance( PROTOTYPE func, INSTANCE const& object, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- == Description Create a member function pointer wrapper around the specified `func` member function pointer of the parameterized `PROTOTYPE`, that is invocable on the specified `object` instance of the parameterized `INSTANCE`. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. == Parameters [cols="1,4"] |=== | Name| Description | *func* | member function pointer to wrap | *object* | instance on which the member function is invocable | *basicAllocator* | memory allocator; null uses the default |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#