Construct an object of ELEMENT_TYPE at the specified address.

Synopsis

Declared in <bsltf_stdallocatoradaptor.h>

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

Description

Construct an object of the (template parameter) ELEMENT_TYPE, by forwarding the allocator instance associated with this allocator adaptor, if appropriate, and the specified (variable number of) arguments to the corresponding constructor of ELEMENT_TYPE, at the specified uninitialized memory address. The behavior is undefined unless address is properly aligned for objects of ELEMENT_TYPE.

Parameters

Name

Description

address

uninitialized memory for the new object

arguments

constructor arguments to forward

Created with MrDocs