[#BloombergLP-bslstl-Function_InvokerUtil_Dispatch-0f-invoke]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Function_InvokerUtil_Dispatch-0f.adoc[Function&lowbar;InvokerUtil&lowbar;Dispatch&lt;Function&lowbar;InvokerUtil&colon;&colon;e&lowbar;MemFunctionPtr, RET(ARG0, ARGS&period;&period;&period;), FUNC&gt;]::invoke
:relfileprefix: ../../../
:mrdocs:

Given pointer to member function, `f`, as the target of the specified `rep`, use the specified `obj` to invoke `f` with the specified `args` and return the result, i&period;e&period;, `(obj&period;&ast;f)(args&period;&period;&period;)`&period; If `obj` is a pointer or smart&hyphen;pointer, dereference `obj` first, i&period;e&period;, call `((&ast;obj)&period;&ast;f)(args&period;&period;&period;)`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;function&lowbar;invokerutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
RET
invoke(
    xref:BloombergLP/bslstl/Function_Rep.adoc[Function&lowbar;Rep] const* rep,
    bslmf::ForwardingType&lt;ARG0&gt;::Type obj,
    bslmf::ForwardingType&lt;ARGS&gt;::Type&period;&period;&period; args);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
