[#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 `&lt;bdlb&lowbar;nullablevalueref&period;h&gt;`

Create a nullable wrapper that refers to the same target as `original`&period;


[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&period;&period;&period;_]#

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


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

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

Create a nullable wrapper that refers to the same target as `ref`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlb/ConstNullableValueRef/2constructor-03.adoc[ConstNullableValueRef](xref:BloombergLP/bdlb/NullableValueRef.adoc[NullableValueRef&lt;TYPE&gt;] const& ref);
----

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

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


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

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| wrapper whose target is shared
| *opt*
| nullable object to wrap
| *ref*
| wrapper whose target is shared
|===


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