std::pmr::polymorphic_allocator<T>::new_object
Min standard notice:
Allocates and constructs an object of type U.
# Declarations
template< class U, class... CtorArgs >
U* new_object( CtorArgs&&... ctor_args );
(since C++20)
# Parameters
ctor_args: the arguments to forward to the constructor of U
# Return value
A pointer to the allocated and constructed object.
# Notes
This function was introduced for use with the fully-specialized allocator std::pmr::polymorphic_allocator<>, but it may be useful in any specialization as a shortcut to avoid having to rebind from std::pmr::polymorphic_allocator
Since U is not deduced, it must be provided as a template argument when calling this function.