[#BloombergLP-bslstl-Function_Rep-target]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Function_Rep.adoc[Function&lowbar;Rep]::target
:relfileprefix: ../../../
:mrdocs:

If `typeid(TP) &equals;&equals; this&hyphen;&gt;target&lowbar;type()`, return a pointer offering modifiable access to this object&apos;s target&semi; otherwise return a null pointer&period; Note that this function is `const` but returns a non&hyphen;`const` pointer because, according to the C&plus;&plus; Standard, `function` (and therefore this representation) does not adhere to logical constness conventions&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TP&gt;
TP*
target() const noexcept;
----


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