[#BloombergLP-bslstl-Optional_Base-05-operator_ptr-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Optional_Base-05.adoc[Optional&lowbar;Base]::operator&hyphen;&gt;
:relfileprefix: ../../../
:mrdocs:

Member access operators

== Synopses

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

Return a pointer providing modifiable access to the underlying `t&lowbar;TYPE` object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
t&lowbar;TYPE*
xref:BloombergLP/bslstl/Optional_Base-05/operator_ptr-09.adoc[operator&hyphen;&gt;]();
----

[.small]#xref:BloombergLP/bslstl/Optional_Base-05/operator_ptr-09.adoc[_» more&period;&period;&period;_]#

Return a pointer providing non&hyphen;modifiable access to the underlying `t&lowbar;TYPE` object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
t&lowbar;TYPE const*
xref:BloombergLP/bslstl/Optional_Base-05/operator_ptr-02.adoc[operator&hyphen;&gt;]() const;
----

[.small]#xref:BloombergLP/bslstl/Optional_Base-05/operator_ptr-02.adoc[_» more&period;&period;&period;_]#

== Return Value

* pointer providing modifiable access to the contained value
* pointer providing non&hyphen;modifiable access to the contained value


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