[#BloombergLP-bslstl-Optional_DataImp-value-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Optional_DataImp.adoc[Optional&lowbar;DataImp]::value
:relfileprefix: ../../../
:mrdocs:

`value` overloads

== Synopses

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

Return the `value&lowbar;type` object in `d&lowbar;buffer` with const qualification adjusted to match that of `t&lowbar;TYPE`&period; The behavior is undefined unless `this&hyphen;&gt;hasValue() &equals;&equals; true`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
t&lowbar;TYPE&
xref:BloombergLP/bslstl/Optional_DataImp/value-06.adoc[value]() &amp;;
----

[.small]#xref:BloombergLP/bslstl/Optional_DataImp/value-06.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_DataImp/value-00.adoc[value]() &amp;&amp;;
----

[.small]#xref:BloombergLP/bslstl/Optional_DataImp/value-00.adoc[_» more&period;&period;&period;_]#

Return the `value&lowbar;type` object in `d&lowbar;buffer` with const qualification adjusted to match that of `t&lowbar;TYPE`&period; The behavior is undefined unless `this&hyphen;&gt;hasValue() &equals;&equals; true`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
t&lowbar;TYPE const&
xref:BloombergLP/bslstl/Optional_DataImp/value-01.adoc[value]() const &amp;;
----

[.small]#xref:BloombergLP/bslstl/Optional_DataImp/value-01.adoc[_» more&period;&period;&period;_]#

Return an rvalue reference to the contained value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
t&lowbar;TYPE const&&
xref:BloombergLP/bslstl/Optional_DataImp/value-0e.adoc[value]() const &amp;&amp;;
----

[.small]#xref:BloombergLP/bslstl/Optional_DataImp/value-0e.adoc[_» more&period;&period;&period;_]#


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