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

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

== Synopsis

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

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

== Description

Create a `ManagedDatum` object having the same value as the specified `original` object and the specified `allocator` (e&period;g&period;, the address of a `bslma&colon;&colon;Allocator` object) used to supply memory&period; The allocator of `original` remains unchanged&period; If `original` and the newly created object have the same allocator then the value of `original` becomes unspecified but valid, and no exceptions will be thrown&semi; otherwise `original` is unchanged and an exception may be thrown&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| object providing the value
| *allocator*
| allocator used to supply memory
|===


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