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

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;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
t&lowbar;TYPE&
value() &amp;;
----


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