[#BloombergLP-bdlb-ConstNullableValueRef-2constructor-05] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/ConstNullableValueRef.adoc[ConstNullableValueRef]::ConstNullableValueRef :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/ConstNullableValueRef/2constructor-0e.adoc[ConstNullableValueRef](xref:BloombergLP/bdlb/ConstNullableValueRef.adoc[ConstNullableValueRef] const& original); ---- [.small]#xref:BloombergLP/bdlb/ConstNullableValueRef/2constructor-0e.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/ConstNullableValueRef/2constructor-00.adoc[ConstNullableValueRef](xref:BloombergLP/bdlb/NullableAllocatedValue.adoc[NullableAllocatedValue<TYPE>] const& opt); ---- [.small]#xref:BloombergLP/bdlb/ConstNullableValueRef/2constructor-00.adoc[_» more..._]# Create a nullable object wrapper that refers to the target object of the specified `ref` wrapper. Note that the created wrapper does not own a copy of the underlying nullable value, but instead refers to 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/ConstNullableValueRef/2constructor-03.adoc[ConstNullableValueRef](xref:BloombergLP/bdlb/NullableValueRef.adoc[NullableValueRef<TYPE>] const& ref); ---- [.small]#xref:BloombergLP/bdlb/ConstNullableValueRef/2constructor-03.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/ConstNullableValueRef/2constructor-0a.adoc[ConstNullableValueRef](xref:bsl/optional-072.adoc[bsl::optional<TYPE>] const& opt); ---- [.small]#xref:BloombergLP/bdlb/ConstNullableValueRef/2constructor-0a.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#