[#BloombergLP-bslma-ConstructionUtil-construct-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ConstructionUtil.adoc[ConstructionUtil]::construct :relfileprefix: ../../../ :mrdocs: Create a default‐constructed object of (template parameter) `TARGET_TYPE` at the specified `address`. If `allocator` is a `bslma`‐compatible allocator and `TARGET_TYPE` supports `bslma`‐style allocation, `allocator` is passed to the default extended constructor; otherwise, `allocator` is ignored. If the constructor throws, the memory at `address` is left in an unspecified state. The behavior is undefined unless `address` refers to a block that is of sufficient size and properly aligned for objects of `TARGET_TYPE`. == Synopsis Declared in `<bslma_constructionutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class TARGET_TYPE, class ALLOCATOR> static void construct( TARGET_TYPE* address, ALLOCATOR const& allocator); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#