[#BloombergLP-bdld-ManagedDatum-adopt] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/ManagedDatum.adoc[ManagedDatum]::adopt :relfileprefix: ../../../ :mrdocs: Take ownership of the specified `obj` and destroy the `Datum` object previously managed by this object. The behavior is undefined unless `obj` was allocated using the same allocator used by this object and is not subsequently destroyed externally using `Datum::destroy`. == Synopsis Declared in `<bdld_manageddatum.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void adopt(xref:BloombergLP/bdld/Datum.adoc[Datum] const& obj); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#