[#bsl-function-0a-target-0ad]
= xref:bsl.adoc[bsl]::xref:bsl/function-0a.adoc[function]::target
:relfileprefix: ../../
:mrdocs:

If `TP` is the same type as the target object, returns a pointer granting modifiable access to the target&semi; otherwise return a null pointer&period;

== Synopsis

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

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

== Return Value

modifiable pointer to the target if `TP` matches, else null


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