[#BloombergLP-bslstl-Optional_Base-05-operator_star-0b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Optional_Base-05.adoc[Optional&lowbar;Base]::operator&ast;
:relfileprefix: ../../../
:mrdocs:

Dereference operators

== Synopses

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

Return a reference providing modifiable access to the underlying `t&lowbar;TYPE` object&period; The behavior is undefined if the `Optional&lowbar;Base` object is disengaged&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
t&lowbar;TYPE&
xref:BloombergLP/bslstl/Optional_Base-05/operator_star-07.adoc[operator&ast;]() &amp;;
----

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

Return an rvalue reference to the contained value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
t&lowbar;TYPE&&
xref:BloombergLP/bslstl/Optional_Base-05/operator_star-047.adoc[operator&ast;]() &amp;&amp;;
----

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

Return a reference providing non&hyphen;modifiable access to the underlying `t&lowbar;TYPE` object&period; The behavior is undefined if the `Optional&lowbar;Base` object is disengaged&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
t&lowbar;TYPE const&
xref:BloombergLP/bslstl/Optional_Base-05/operator_star-08.adoc[operator&ast;]() const &amp;;
----

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

Same as the `operator&ast;` overload taking `const &amp;`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
t&lowbar;TYPE const&&
xref:BloombergLP/bslstl/Optional_Base-05/operator_star-046.adoc[operator&ast;]() const &amp;&amp;;
----

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


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