[#BloombergLP-bdld-Datum-adoptIntMap] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/Datum.adoc[Datum]::adoptIntMap :relfileprefix: ../../../ :mrdocs: Return a datum that takes ownership of the specified `intMap`. == Synopsis Declared in `<bdld_datum.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdld/Datum.adoc[Datum] adoptIntMap(xref:BloombergLP/bdld/DatumMutableIntMapRef.adoc[DatumMutableIntMapRef] const& intMap); ---- == Description Return, by value, a datum that refers to the specified `intMap`. The behavior is undefined unless `map` was created using `createUninitializedIntMap` method. The behavior is also undefined unless each element in the held map has been assigned a value and the size of the map has been set accordingly. Note that the adopted map is owned and will be freed if `Datum::destroy` is called on the returned object. == Return Value a datum that takes ownership of the specified `intMap` == Parameters [cols="1,4"] |=== | Name| Description | *intMap* | mutable int‐map previously created uninitialized |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#