[#BloombergLP-bslstl-Function_InvokerUtil_Dispatch-08-invoke]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Function_InvokerUtil_Dispatch-08.adoc[Function&lowbar;InvokerUtil&lowbar;Dispatch&lt;Function&lowbar;InvokerUtil&colon;&colon;e&lowbar;MemDataPtr, RET(ARG0), MEMBER&lowbar;TYPECLASS&lowbar;TYPE::*&gt;]::invoke
:relfileprefix: ../../../
:mrdocs:

Return the data member of `obj` designated by the target of `rep`&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);
----

== Description

Given pointer to data member, `f`, as the target of the specified `rep`, return the specified `f` member of the specified `obj`, i&period;e&period;, `obj&period;&ast;f`&period; If `obj` is a pointer or smart&hyphen;pointer, dereference `obj` first, i&period;e&period;, return `(&ast;obj)&period;&ast;f`&period;

== Return Value

the designated data member of `obj`, converted to `RET`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rep*
| representation holding the pointer&hyphen;to&hyphen;data&hyphen;member
| *obj*
| object, pointer, or smart pointer whose member is accessed
|===


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