[#beman-optional-optional-03-operator_ptr-094]
= xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-03.adoc[optional]::operator&hyphen;&gt;
:relfileprefix: ../../../
:mrdocs:

Returns a pointer to the contained value&period;

== Synopses

Declared in `&lt;beman&sol;optional&sol;optional&period;hpp&gt;`

Returns a pointer to the contained value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
T const*
xref:beman/optional/optional-03/operator_ptr-093.adoc[operator&hyphen;&gt;]() const;
----

[.small]#xref:beman/optional/optional-03/operator_ptr-093.adoc[_» more&period;&period;&period;_]#

Returns a pointer to the contained value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
T*
xref:beman/optional/optional-03/operator_ptr-06.adoc[operator&hyphen;&gt;]();
----

[.small]#xref:beman/optional/optional-03/operator_ptr-06.adoc[_» more&period;&period;&period;_]#

== Return Value

* const T&ast;
* T&ast;


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