Skip to main content
Pigweed's logo Pigweed
  1. Home
  2. Reference
  3. C/C++
  4. pw_allocator
  5. Forwarding allocators
  6. pw::allocator::PmrAllocator Class Reference
Loading...
Searching...
No Matches
pw::allocator::PmrAllocator Class Referencefinal

Overview

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.

Inheritance diagram for pw::allocator::PmrAllocator:

Public Types

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

Public Member Functions

 PmrAllocator (pw::Allocator &allocator)
 
pw::Allocatorallocator ()
 

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