createUninitializedMap overloads
Synopses
Declared in <bdld_datum.h>
Load the specified result with a reference to a newly created datum map having the specified capacity, using the specified allocator to supply memory. The behavior is undefined if capacity DatumMapEntry objects would exceed the addressable memory for the platform. Note that the caller is responsible for filling in elements into the datum map and setting its size accordingly. The number of elements in the datum map cannot exceed capacity. Also note that any elements in the datum map that need dynamic memory, should also be allocated with allocator.
static
void
createUninitializedMap(
DatumMutableMapRef* result,
SizeType capacity,
AllocatorType const& allocator);
Load the specified result with a reference to a newly created datum‐key‐owning map having the specified capacity and keysCapacity, using the specified allocator to supply memory. The behavior is undefined if capacity DatumMapEntry object plus keysCapacity would exceed the addressable memory for the platform. Note that the caller is responsible for filling in elements into the datum‐key‐owning map, copying the keys into it, and setting its size accordingly. The number of elements in the datum‐key‐owning map cannot exceed capacity and total size of all the keys cannot exceed keysCapacity. Also note that any elements in the datum‐key‐owning map that need dynamic memory, should also be allocated with allocator.
static
void
createUninitializedMap(
DatumMutableMapOwningKeysRef* result,
SizeType capacity,
SizeType keysCapacity,
AllocatorType const& allocator);
Created with MrDocs