[#BloombergLP-bslstl-Variant_DataImp-value-07]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Variant_DataImp.adoc[Variant&lowbar;DataImp]::value
:relfileprefix: ../../../
:mrdocs:

`value` overloads

== Synopses

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

Return a reference to the stored `t&lowbar;TYPE` object&period;


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

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

Return an rvalue reference to the stored `t&lowbar;TYPE` object&period;


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

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

Return a const reference to the stored `t&lowbar;TYPE` object&period;


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

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

Return an rvalue reference to the stored `t&lowbar;TYPE` object&period;


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

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

== Return Value

* reference to the stored `t&lowbar;TYPE` object
* rvalue reference to the stored `t&lowbar;TYPE` object
* const reference to the stored `t&lowbar;TYPE` object
* const rvalue reference to the stored `t&lowbar;TYPE` object


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