BloombergLP::bdld::Datum::createArrayReference

Return a datum referring to the array described by value.

Synopsis

Declared in <bdld_datum.h>

static
Datum
createArrayReference(
    DatumArrayRef const& value,
    AllocatorType const& allocator);

Description

Return, by value, a datum having the specified value, using the specified allocator to supply memory (if needed). The array referenced by value is not copied, and is not freed if Datum::destroy is called on the returned object. The behavior is undefined unless value.length() <= UINT_MAX.

Return Value

a datum referring to the array described by value

Parameters

NameDescription
valuearray reference to wrap
allocatormemory allocator to use