[#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 `<bdlb_nullablevalueref.h>` Create a nullable object wrapper that refers to the target object of the specified `original` wrapper. 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. [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..._]# Create a nullable object wrapper that refers to the specified `opt` object. 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlb/NullableValueRef/2constructor-0db.adoc[NullableValueRef](xref:BloombergLP/bdlb/NullableAllocatedValue.adoc[NullableAllocatedValue<TYPE>]& opt); ---- [.small]#xref:BloombergLP/bdlb/NullableValueRef/2constructor-0db.adoc[_» more..._]# Create a nullable object wrapper that refers to the specified `opt` object. 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlb/NullableValueRef/2constructor-0e.adoc[NullableValueRef](xref:bsl/optional-072.adoc[bsl::optional<TYPE>]& opt); ---- [.small]#xref:BloombergLP/bdlb/NullableValueRef/2constructor-0e.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#