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

Name

Description

objPtr

address at which to create the VALUE object

value

character identifier used to initialize the object

allocator

allocator used to supply memory

Created with MrDocs