BloombergLP::bsltf::StdTestAllocator::construct

Construct an ELEMENT_TYPE object at the specified address.

Synopsis

Declared in <bsltf_stdtestallocator.h>

template<
    class ELEMENT_TYPE,
    class... Args>
void
construct(
    ELEMENT_TYPE* address,
    Args&&... arguments);

Description

Create an object of (template parameter) ELEMENT_TYPE at the specified address, constructed by forwarding the specified argument1 and the (variable number of) additional specified arguments to the corresponding constructor of ELEMENT_TYPE. The behavior is undefined unless address refers to a block of memory having sufficient size and alignment for an object of ELEMENT_TYPE.

Parameters

NameDescription
addressuninitialized memory at which to construct the object
argumentsarguments forwarded to the ELEMENT_TYPE constructor