BloombergLP::bsltf::TemplateTestFacility::emplace

Create a TYPE object at address unique for identifier.

Synopsis

Declared in <bsltf_templatetestfacility.h>

template<
    class TYPE,
    class ALLOCATOR>
static
void
emplace(
    TYPE* address,
    int identifier,
    ALLOCATOR allocator);

Description

The behavior is undefined unless 0 <= identifier < 128 and TYPE is contained in the macro BSLTF_TEMPLATETESTFACILITY_TEST_TYPES_ALL.

Parameters

NameDescription
addressuninitialized storage for the object
identifierinteger identity used to initialize the object
allocatorallocator supplied to the constructor