[#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 previously managed `Datum` object. == Synopsis Declared in `<bdld_manageddatum.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void adopt(xref:BloombergLP/bdld/Datum.adoc[Datum] const& obj); ---- == Description 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`. == Parameters [cols="1,4"] |=== | Name| Description | *obj* | Datum object whose ownership is assumed |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#