[#BloombergLP-bdld-Datum-adoptMap-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/Datum.adoc[Datum]::adoptMap :relfileprefix: ../../../ :mrdocs: `adoptMap` overloads == Synopses Declared in `<bdld_datum.h>` Return, by value, a datum that refers to the specified `map`. The behavior is undefined unless `map` was created using `createUninitializedMapOwningKeys` 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. The behavior is also undefined unless keys have been copied into the map. Note that the adopted map is owned and will be freed if `Datum::destroy` is called on the returned object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdld/Datum.adoc[Datum] xref:BloombergLP/bdld/Datum/adoptMap-05.adoc[adoptMap](xref:BloombergLP/bdld/DatumMutableMapOwningKeysRef.adoc[DatumMutableMapOwningKeysRef] const& map); ---- [.small]#xref:BloombergLP/bdld/Datum/adoptMap-05.adoc[_» more..._]# Return, by value, a datum that refers to the specified `map`. The behavior is undefined unless `map` was created using `createUninitializedMap` 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdld/Datum.adoc[Datum] xref:BloombergLP/bdld/Datum/adoptMap-09.adoc[adoptMap](xref:BloombergLP/bdld/DatumMutableMapRef.adoc[DatumMutableMapRef] const& map); ---- [.small]#xref:BloombergLP/bdld/Datum/adoptMap-09.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#