[#BloombergLP-bdlb-ConstNullableValueRef-2constructor-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/ConstNullableValueRef.adoc[ConstNullableValueRef]::ConstNullableValueRef
:relfileprefix: ../../../
:mrdocs:

Create a nullable wrapper that refers to `opt`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;nullablevalueref&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
ConstNullableValueRef(xref:bsl/optional-072.adoc[bsl::optional&lt;TYPE&gt;] const& opt);
----

== Description

Create a nullable object wrapper that refers to the specified `opt` object&period; Note that the created wrapper does not own a copy of the underlying nullable value, but instead refers to it, and so the lifetime of `opt` must exceed the lifetime of the created wrapper&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *opt*
| nullable object to wrap
|===


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