BloombergLP::bdld::DatumMapRef::DatumMapRef

Create a read-only view of the specified datum map.

Synopsis

Declared in <bdld_datum.h>

DatumMapRef(
    DatumMapEntry const* data,
    SizeType size,
    bool sorted,
    bool ownsKeys);

Description

Create a DatumMapRef object having the specified data of the specified size and the specified sorted and ownsKeys flags. The behavior is undefined unless 0 != data or 0 == size. Note that the pointer to the array is just copied.

Parameters

NameDescription
datapointer to the first map entry
sizenumber of entries in the map
sortedwhether the entries are sorted by key
ownsKeyswhether the map owns its key storage