Pigweed
 
Loading...
Searching...
No Matches
pw::allocator::PmrAllocator Class Referencefinal

#include <pmr_allocator.h>

Inheritance diagram for pw::allocator::PmrAllocator:

Public Types

using Base = pw::pmr::polymorphic_allocator< std::byte >
 

Public Member Functions

 PmrAllocator (Allocator &allocator)
 
Allocatorallocator ()
 

Detailed Description

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.


The documentation for this class was generated from the following file: