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
Name |
Description |
address |
uninitialized memory at which to construct the object |
arguments |
arguments forwarded to the |
Created with MrDocs