[#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&period;

== Synopsis

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

[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&period; The behavior is undefined unless `obj` was allocated using the same allocator used by this object and is not subsequently destroyed externally using `Datum&colon;&colon;destroy`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *obj*
| Datum object whose ownership is assumed
|===


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