#include <pmr_allocator.h>
Public Types | |
using | Base = pw::pmr::polymorphic_allocator< std::byte > |
Public Member Functions | |
PmrAllocator (Allocator &allocator) | |
Allocator & | allocator () |
Implementation of C++'s abstract polymorphic allocator interface that uses a pw::Allocator.
Note that despite is name, this is NOT a pw::Allocator itself. Instead, it can be used in pw::pmr
containers, such as pw::pmr::vector
.
See also https://en.cppreference.com/w/cpp/memory/polymorphic_allocator.