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

`target` overloads

== Synopses

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

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;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TP&gt;
TP*
xref:bsl/function-0a/target-0ad.adoc[target]() noexcept;
----

[.small]#xref:bsl/function-0a/target-0ad.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TP&gt;
TP const*
xref:bsl/function-0a/target-08.adoc[target]() const noexcept;
----

[.small]#xref:bsl/function-0a/target-08.adoc[_» more&period;&period;&period;_]#

== Return Value

* modifiable pointer to the target if `TP` matches, else null
* read&hyphen;only pointer to the target if `TP` matches, else null


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