BloombergLP::bdld::Datum::disposeUninitializedArray

Deallocate the storage of an uninitialized array without destroying elements.

Synopsis

Declared in <bdld_datum.h>

static
void
disposeUninitializedArray(
    DatumMutableArrayRef const& array,
    AllocatorType const& allocator);

Description

Deallocate the memory used by the specified array (but not memory allocated for its contained elements) using the specified allocator. This method does not destroy individual array elements and the memory allocated for those elements must be explicitly deallocated before calling this method. The behavior is undefined unless array was created with createUninitializedArray using allocator.

Parameters

NameDescription
arraymutable array previously created uninitialized
allocatormemory allocator to use