Copy‐construct an object of type TYPE at the specified address.
Synopsis
Declared in <bslma_stdtestallocator.h>
template<class ELEMENT_TYPE>
void
construct(
ELEMENT_TYPE* address,
TYPE const& val);
Description
Copy‐construct an object of (template parameter) TYPE from the specified val at the memory address specified by address. Do not directly allocate memory. The behavior is undefined unless address is properly aligned for objects of the given TYPE.
Parameters
Name |
Description |
address |
The address at which to construct the object. |
val |
The value used to copy‐construct the object. |
Created with MrDocs