[#BloombergLP-bdld-ManagedDatum-2constructor-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/ManagedDatum.adoc[ManagedDatum]::ManagedDatum
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;bdld&lowbar;manageddatum&period;h&gt;`

Create a `ManagedDatum` object having the default (null) value&period;


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

[.small]#xref:BloombergLP/bdld/ManagedDatum/2constructor-002.adoc[_» more&period;&period;&period;_]#

Create a `ManagedDatum` object having the same value and allocator as the specified `original` object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdld/ManagedDatum/2constructor-085.adoc[ManagedDatum](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;ManagedDatum&gt;] original);
----

[.small]#xref:BloombergLP/bdld/ManagedDatum/2constructor-085.adoc[_» more&period;&period;&period;_]#

Create a `ManagedDatum` object having the default (null) value and using the specified `allocator` to supply memory&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdld/ManagedDatum/2constructor-003.adoc[ManagedDatum](xref:BloombergLP/bdld/ManagedDatum/allocator_type.adoc[allocator&lowbar;type] const& allocator);
----

[.small]#xref:BloombergLP/bdld/ManagedDatum/2constructor-003.adoc[_» more&period;&period;&period;_]#

Create a `ManagedDatum` object having the same value as the specified `original` object and the specified `allocator`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdld/ManagedDatum/2constructor-05.adoc[ManagedDatum](
    xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;ManagedDatum&gt;] original,
    xref:BloombergLP/bdld/ManagedDatum/allocator_type.adoc[allocator&lowbar;type] const& allocator);
----

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

Create a `ManagedDatum` object that assumes ownership of the specified `datum`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdld/ManagedDatum/2constructor-0f.adoc[ManagedDatum](
    xref:BloombergLP/bdld/Datum.adoc[Datum] const& datum,
    xref:BloombergLP/bdld/ManagedDatum/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/bdld/ManagedDatum/2constructor-0f.adoc[_» more&period;&period;&period;_]#

Create a `ManagedDatum` object having the same value as the specified `original` object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdld/ManagedDatum/2constructor-08b.adoc[ManagedDatum](
    xref:BloombergLP/bdld/ManagedDatum.adoc[ManagedDatum] const& original,
    xref:BloombergLP/bdld/ManagedDatum/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| object providing the value
| *allocator*
| allocator used to supply memory
| *datum*
| Datum object whose ownership is assumed
|===


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