BloombergLP::bdld::Datum_Helpers::store

Store value at offset within destination and return it.

Synopsis

Declared in <bdld_datum.h>

template<class t_TYPE>
static
t_TYPE
store(
    void* destination,
    int offset,
    t_TYPE value);

Description

Store the specified typed value at the specified offset within the specified destination and return value.

Return Value

the stored value

Parameters

NameDescription
destinationbuffer that receives the value
offsetbyte offset within destination
valuetyped value to store