[#BloombergLP-bslstl-Variant_DataImp-value-07] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Variant_DataImp.adoc[Variant_DataImp]::value :relfileprefix: ../../../ :mrdocs: `value` overloads == Synopses Declared in `<bslstl_variant.h>` Return a reference to the stored `t_TYPE` object. The behavior is undefined unless this object contains a `t_TYPE` object (i.e., this object is currently managing the active alternative of a `bsl::variant` object). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr t_TYPE& xref:BloombergLP/bslstl/Variant_DataImp/value-05.adoc[value]() &; ---- [.small]#xref:BloombergLP/bslstl/Variant_DataImp/value-05.adoc[_» more..._]# Return an rvalue reference to the stored `t_TYPE` object. The behavior is undefined unless this object contains a `t_TYPE` object (i.e., this object is currently managing the active alternative of a `bsl::variant` object). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr t_TYPE&& xref:BloombergLP/bslstl/Variant_DataImp/value-0e.adoc[value]() &&; ---- [.small]#xref:BloombergLP/bslstl/Variant_DataImp/value-0e.adoc[_» more..._]# Return a const reference to the stored `t_TYPE` object. The behavior is undefined unless this object contains a `t_TYPE` object (i.e., this object is currently managing the active alternative of a `bsl::variant` object). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr t_TYPE const& xref:BloombergLP/bslstl/Variant_DataImp/value-06.adoc[value]() const &; ---- [.small]#xref:BloombergLP/bslstl/Variant_DataImp/value-06.adoc[_» more..._]# Return an rvalue reference to the stored `t_TYPE` object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr t_TYPE const&& xref:BloombergLP/bslstl/Variant_DataImp/value-0f.adoc[value]() const &&; ---- [.small]#xref:BloombergLP/bslstl/Variant_DataImp/value-0f.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#