[#BloombergLP-bslma-StdTestAllocator-construct]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/StdTestAllocator.adoc[StdTestAllocator]::construct
:relfileprefix: ../../../
:mrdocs:

Copy&hyphen;construct an object of type `TYPE` at the specified `address`&period;

== Synopsis

Declared in `&lt;bslma&lowbar;stdtestallocator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ELEMENT&lowbar;TYPE&gt;
void
construct(
    ELEMENT&lowbar;TYPE* address,
    TYPE const& val);
----

== Description

Copy&hyphen;construct an object of (template parameter) `TYPE` from the specified `val` at the memory address specified by `address`&period; Do not directly allocate memory&period; The behavior is undefined unless `address` is properly aligned for objects of the given `TYPE`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *address*
| The address at which to construct the object&period;
| *val*
| The value used to copy&hyphen;construct the object&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
