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

Constructors

== Synopses

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

Create `NullableValueRef` object&period; The behaviour is undefined unless `objectAddress` and `vtable` point to the valid objects&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlar/NullableValueRef/2constructor-01.adoc[NullableValueRef](
    void* objectAddress,
    xref:BloombergLP/bdlar/NullableValueVtable.adoc[NullableValueVtable] const* vtable);
----

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

Create `NullableValueRef` object that type erases the supplied `nullable` object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;NULLABLE&gt;
explicit
xref:BloombergLP/bdlar/NullableValueRef/2constructor-04.adoc[NullableValueRef](
    t&lowbar;NULLABLE& nullable,
    void* = 0)
requires IsNullable&lt;t&lowbar;NULLABLE&gt;&colon;&colon;value;
----

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


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