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

Constructors

== Synopses

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

Create a nullable object wrapper that refers to the target object of the specified `original` wrapper&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 the target must exceed the lifetime of the created wrapper&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlb/NullableValueRef/2constructor-0b.adoc[NullableValueRef](xref:BloombergLP/bdlb/NullableValueRef.adoc[NullableValueRef] const& original);
----

[.small]#xref:BloombergLP/bdlb/NullableValueRef/2constructor-0b.adoc[_» more&period;&period;&period;_]#

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;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlb/NullableValueRef/2constructor-0db.adoc[NullableValueRef](xref:BloombergLP/bdlb/NullableAllocatedValue.adoc[NullableAllocatedValue&lt;TYPE&gt;]& opt);
----

[.small]#xref:BloombergLP/bdlb/NullableValueRef/2constructor-0db.adoc[_» more&period;&period;&period;_]#

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;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlb/NullableValueRef/2constructor-0e.adoc[NullableValueRef](xref:bsl/optional-072.adoc[bsl::optional&lt;TYPE&gt;]& opt);
----

[.small]#xref:BloombergLP/bdlb/NullableValueRef/2constructor-0e.adoc[_» more&period;&period;&period;_]#


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