[#BloombergLP-bdld-DatumMapBuilder-setSorted]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/DatumMapBuilder.adoc[DatumMapBuilder]::setSorted
:relfileprefix: ../../../
:mrdocs:

Mark the Datum map being built by this object as sorted if the specified `value` is `true` and mark it unsorted otherwise&period; This function does not sort the map entries, or mark them to be sorted later&semi; the function should be used to indicate if the entries are being appended in sorted order&period; The behavior is undefined if `commit` or `sortAndCommit` has already been called on this object&period; The behavior is also undefined if the map being constructed is marked sorted, but the entries are not appended in sorted order&period; Note also that the map being constructed is marked unsorted by default&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setSorted(bool value);
----


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