[#BloombergLP-bdld-DatumMapOwningKeysBuilder-sortAndCommit]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/DatumMapOwningKeysBuilder.adoc[DatumMapOwningKeysBuilder]::sortAndCommit
:relfileprefix: ../../../
:mrdocs:

Return a key&hyphen;sorted `Datum` map (owning keys) of the appended elements&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdld/Datum.adoc[Datum]
sortAndCommit();
----

== Description

Return a `Datum` map (owning keys) value holding the elements supplied to `pushBack` or `append` sorted by their keys&period; The caller is responsible for releasing the resources of the returned `Datum` object&period; Calling this method indicates that the caller is finished building the `Datum` map (owning keys) and no further values shall be appended&period; The behavior is undefined if any method of this object, other than its destructor, is called after `sortAndCommit` invocation&period;

== Return Value

key&hyphen;sorted `Datum` map (owning keys) holding the elements supplied to this builder


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