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

Constructors

== Synopses

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

Create a nullable object having the null value&period; Use the currently installed default allocator to supply memory&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlb/NullableAllocatedValue/2constructor-042.adoc[NullableAllocatedValue]();
----

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

Create a nullable object having the value of the specified `original` object&period; Use the currently installed default allocator to supply memory&period;


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

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

Create a nullable object having the specified `value`&period; Use the currently installed default allocator to supply memory&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlb/NullableAllocatedValue/2constructor-07a.adoc[NullableAllocatedValue](TYPE const& value);
----

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

Create a nullable object having the null value&period; Use the currently installed default allocator to supply memory&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlb/NullableAllocatedValue/2constructor-04c.adoc[NullableAllocatedValue](xref:bsl/nullopt_t.adoc[bsl::nullopt&lowbar;t] const& nullopt);
----

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

Create a nullable object that has the null value and that uses the mechanism of the specified `allocator` to supply memory&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlb/NullableAllocatedValue/2constructor-05bd.adoc[NullableAllocatedValue](xref:bsl/allocator-0df.adoc[bsl::allocator&lt;char&gt;] const& allocator);
----

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

Create a nullable object having the value of the specified `original` object and that uses the mechanism of the specified `allocator` to supply memory&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlb/NullableAllocatedValue/2constructor-05b9.adoc[NullableAllocatedValue](
    xref:BloombergLP/bdlb/NullableAllocatedValue.adoc[NullableAllocatedValue] const& original,
    xref:bsl/allocator-0df.adoc[bsl::allocator&lt;char&gt;] const& allocator);
----

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

Create a nullable object having the specified `value` and that uses the mechanism of specified `allocator` to supply memory&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlb/NullableAllocatedValue/2constructor-0be.adoc[NullableAllocatedValue](
    TYPE const& value,
    xref:bsl/allocator-0df.adoc[bsl::allocator&lt;char&gt;] const& allocator);
----

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

Create a nullable object that has the null value and that uses the mechanism of the specified `allocator` to supply memory&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlb/NullableAllocatedValue/2constructor-08.adoc[NullableAllocatedValue](
    xref:bsl/nullopt_t.adoc[bsl::nullopt&lowbar;t] const& nullopt,
    xref:bsl/allocator-0df.adoc[bsl::allocator&lt;char&gt;] const& allocator);
----

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| source nullable used to initialize this object
| *value*
| value used to initialize this object
| *nullopt*
| disengaged&hyphen;optional tag&semi; value is unused
| *allocator*
| allocator used to supply memory
|===


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