BloombergLP::bdld::Datum::createDecimal64

Return a datum holding the specified Decimal64 value.

Synopsis

Declared in <bdld_datum.h>

static
Datum
createDecimal64(
    bdldfp::Decimal64 value,
    AllocatorType const& allocator);

Description

Return, by value, a datum having the specified Decimal64 value, using the specified allocator to supply memory (if needed). Note that the argument is passed by value because it is assumed to be a fundamental type.

Return Value

a datum holding the specified Decimal64 value

Parameters

NameDescription
valueDecimal64 value to store
allocatormemory allocator to use