std::uninitialized_construct_using_allocator
From cppreference.com
Defined in header <memory>
|
||
template< class T, class Alloc, class... Args > constexpr T* uninitialized_construct_using_allocator( T* p, |
(since C++20) | |
Creates an object of the given type T
by means of uses-allocator construction at the uninitialized memory location indicated by p.
Equivalent to
return std::apply( [&]<class... Xs>(Xs&&...xs) { return std::construct_at(p, std::forward<Xs>(xs)...); },