[#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 `<bdld_manageddatum.h>` Create a `ManagedDatum` object having the default (null) value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdld/ManagedDatum/2constructor-002.adoc[ManagedDatum](); ---- [.small]#xref:BloombergLP/bdld/ManagedDatum/2constructor-002.adoc[_» more..._]# Create a `ManagedDatum` object having the same value and allocator as the specified `original` object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdld/ManagedDatum/2constructor-085.adoc[ManagedDatum](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<ManagedDatum>] original); ---- [.small]#xref:BloombergLP/bdld/ManagedDatum/2constructor-085.adoc[_» more..._]# Create a `ManagedDatum` object having the default (null) value and using the specified `allocator` to supply memory. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdld/ManagedDatum/2constructor-003.adoc[ManagedDatum](xref:BloombergLP/bdld/ManagedDatum/allocator_type.adoc[allocator_type] const& allocator); ---- [.small]#xref:BloombergLP/bdld/ManagedDatum/2constructor-003.adoc[_» more..._]# Create a `ManagedDatum` object having the same value as the specified `original` object and the specified `allocator`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdld/ManagedDatum/2constructor-05.adoc[ManagedDatum]( xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<ManagedDatum>] original, xref:BloombergLP/bdld/ManagedDatum/allocator_type.adoc[allocator_type] const& allocator); ---- [.small]#xref:BloombergLP/bdld/ManagedDatum/2constructor-05.adoc[_» more..._]# Create a `ManagedDatum` object that assumes ownership of the specified `datum`. [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_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/bdld/ManagedDatum/2constructor-0f.adoc[_» more..._]# Create a `ManagedDatum` object having the same value as the specified `original` object. [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_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/bdld/ManagedDatum/2constructor-08b.adoc[_» more..._]# == 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]#