bsl::allocator_traits<std::allocator<ALLOCATOR_TYPE>>::construct

Construct an object of type _Tp

Synopsis

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...>());

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

NameDescription
__aAn allocator.
__pPointer to memory of suitable size and alignment for Tp
__argsConstructor arguments.