Construct an object of type _Tp
Declared in <bslma_allocatortraits.h>
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...>());
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...
| Name | Description |
|---|---|
| __a | An allocator. |
| __p | Pointer to memory of suitable size and alignment for Tp |
| __args | Constructor arguments. |