BloombergLP::bdld::DatumMapBuilder::setSorted

Mark the map being built as sorted or unsorted.

Synopsis

Declared in <bdld_datummapbuilder.h>

void
setSorted(bool value);

Description

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

Parameters

NameDescription
valuetrue to mark the map sorted; false for unsorted