Daily bit(e) of C++ | The PMR (Polymorphic Memory Resource) library
Daily bit(e) of C++ #295, The C++17 PMR (Polymorphic Memory Resource) library with type erased allocator: std::pmr::polymorphic_allocator.
C++17 introduced the PMR (Polymorphic Memory Resource) library.
The memory resources in the library offer different allocation patterns and can be chained (a resource will use the parent resource to allocate its internal state/buffers).
The type erased std::pmr::polymorphic_allocator allows containers using different memory resources to be ABI compatible.