[#BloombergLP-bdld-ManagedDatum-2constructor-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/ManagedDatum.adoc[ManagedDatum]::ManagedDatum :relfileprefix: ../../../ :mrdocs: Create a `ManagedDatum` object that assumes ownership of the specified `datum`. Optionally specify an `allocator` (e.g., the address of a `bslma::Allocator` object) to supply memory; otherwise, the default allocator is used. The behavior is undefined unless `datum` was allocated using the indicated allocator and is not subsequently destroyed externally using `Datum::destroy`. == Synopsis Declared in `<bdld_manageddatum.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit ManagedDatum( xref:BloombergLP/bdld/Datum.adoc[Datum] const& datum, xref:BloombergLP/bdld/ManagedDatum/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#