BloombergLP::bsltf::TestValuesArray_DefaultConverter::createInplace

Create a VALUE at objPtr unique for the specified value.

Synopsis

Declared in <bsltf_testvaluesarray.h>

static
void
createInplace(
    VALUE* objPtr,
    char value,
    ALLOCATOR allocator);

Description

Create an object of the (template parameter) type VALUE at the specified objPtr address whose state is unique for the specified value. Use the specified allocator to supply memory. The behavior is undefined unless 0 <= value && value < 128 and VALUE is contained in the macro BSLTF_TEMPLATETESTFACILITY_TEST_TYPES_ALL.

Parameters

NameDescription
objPtraddress at which to create the VALUE object
valuecharacter identifier used to initialize the object
allocatorallocator used to supply memory