[#bsl-allocator_traits-0ae-construct] = xref:bsl.adoc[bsl]::xref:bsl/allocator_traits-0ae.adoc[allocator_traits<std::allocator<ALLOCATOR_TYPE>>]::construct :relfileprefix: ../../ :mrdocs: Construct an object of type `_Tp` == Synopsis Declared in `<bslma_allocatortraits.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename _Tp, typename... _Args> requires __can_construct<_Alloc, _Tp, _Args...> constexpr static void construct( _Alloc& __a, _Tp* __p, _Args&&... __args) noexcept(_S_nothrow_construct<_Tp, _Args...>()); ---- == Description Calls if that expression is well‐formed, otherwise uses placement‐new to construct an object of type __Tp_ at location ___p_ from the arguments ___args..._ == Parameters [cols="1,4"] |=== | Name| Description | *__a* | An allocator. | *__p* | Pointer to memory of suitable size and alignment for Tp | *__args* | Constructor arguments. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#