[#BloombergLP-bslstl-Optional_DataImp-value-0c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Optional_DataImp.adoc[Optional_DataImp]::value :relfileprefix: ../../../ :mrdocs: `value` overloads == Synopses Declared in `<bslstl_optional.h>` Return the `value_type` object in `d_buffer` with const qualification adjusted to match that of `t_TYPE`. The behavior is undefined unless `this‐>hasValue() == true`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- t_TYPE& xref:BloombergLP/bslstl/Optional_DataImp/value-06.adoc[value]() &; ---- [.small]#xref:BloombergLP/bslstl/Optional_DataImp/value-06.adoc[_» more..._]# Return an rvalue reference to the contained value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- t_TYPE&& xref:BloombergLP/bslstl/Optional_DataImp/value-00.adoc[value]() &&; ---- [.small]#xref:BloombergLP/bslstl/Optional_DataImp/value-00.adoc[_» more..._]# Return the `value_type` object in `d_buffer` with const qualification adjusted to match that of `t_TYPE`. The behavior is undefined unless `this‐>hasValue() == true`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- t_TYPE const& xref:BloombergLP/bslstl/Optional_DataImp/value-01.adoc[value]() const &; ---- [.small]#xref:BloombergLP/bslstl/Optional_DataImp/value-01.adoc[_» more..._]# Return an rvalue reference to the contained value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- t_TYPE const&& xref:BloombergLP/bslstl/Optional_DataImp/value-0e.adoc[value]() const &&; ---- [.small]#xref:BloombergLP/bslstl/Optional_DataImp/value-0e.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#