[#BloombergLP-bdlb-NullableValue-value-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/NullableValue.adoc[NullableValue]::value :relfileprefix: ../../../ :mrdocs: `value` overloads == Synopses Declared in `<bdlb_nullablevalue.h>` Return a reference providing modifiable access to the underlying `TYPE` object. The behavior is undefined unless this object is non‐null. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- TYPE& xref:BloombergLP/bdlb/NullableValue/value-01.adoc[value](); ---- [.small]#xref:BloombergLP/bdlb/NullableValue/value-01.adoc[_» more..._]# Return a reference providing non‐modifiable access to the underlying object of a (template parameter) `TYPE`. The behavior is undefined unless this object is non‐null. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- TYPE const& xref:BloombergLP/bdlb/NullableValue/value-04.adoc[value]() const; ---- [.small]#xref:BloombergLP/bdlb/NullableValue/value-04.adoc[_» more..._]# Return a reference providing modifiable access to the underlying `t_TYPE` object if `true == has_value()` and throw `bsl::bad_optional_access` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- t_TYPE& xref:BloombergLP/bslstl/Optional_Base-05/value-0f.adoc[value]() &; ---- [.small]#xref:BloombergLP/bslstl/Optional_Base-05/value-0f.adoc[_» more..._]# Return an rvalue reference to the contained value; throws if disengaged. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- t_TYPE&& xref:BloombergLP/bslstl/Optional_Base-05/value-073.adoc[value]() &&; ---- [.small]#xref:BloombergLP/bslstl/Optional_Base-05/value-073.adoc[_» more..._]# Return a reference providing non‐modifiable access to the underlying `t_TYPE` object if `true == has_value()` and throw `bsl::bad_optional_access` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- t_TYPE const& xref:BloombergLP/bslstl/Optional_Base-05/value-0d.adoc[value]() const &; ---- [.small]#xref:BloombergLP/bslstl/Optional_Base-05/value-0d.adoc[_» more..._]# Return an rvalue reference to the underlying `t_TYPE` object if `true == has_value()` and throw `bsl::bad_optional_access` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- t_TYPE const&& xref:BloombergLP/bslstl/Optional_Base-05/value-0c.adoc[value]() const &&; ---- [.small]#xref:BloombergLP/bslstl/Optional_Base-05/value-0c.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#