Namespaces
Variants

std::polymorphic<T, Allocator>::get_allocator

From cppreference.com
 
 
Memory management library
Allocators
Memory resources
Uninitialized storage (until C++20*)
Garbage collector support (until C++23)
 
 
constexpr allocator_type get_allocator() const noexcept;
(since C++26)

Obtains the associated allocator.

Return value

alloc

Example