![]() |
WPILibC++ 2025.3.2
|
Wraps a RawAllocator and makes it a memory_resource. More...
#include <wpi/memory/memory_resource_adapter.hpp>
Public Types | |
| using | allocator_type = typename allocator_traits<RawAllocator>::allocator_type |
Public Member Functions | |
| memory_resource_adapter (allocator_type &&other) noexcept | |
| allocator_type & | get_allocator () noexcept |
| const allocator_type & | get_allocator () const noexcept |
Protected Types | |
| using | traits_type = allocator_traits<RawAllocator> |
Protected Member Functions | |
| void * | do_allocate (std::size_t bytes, std::size_t alignment) override |
| void | do_deallocate (void *p, std::size_t bytes, std::size_t alignment) override |
| bool | do_is_equal (const memory_resource &other) const noexcept override |
Wraps a RawAllocator and makes it a memory_resource.
| using wpi::memory::memory_resource_adapter< RawAllocator >::allocator_type = typename allocator_traits<RawAllocator>::allocator_type |
|
protected |
|
inlinenoexcept |
|
inlineoverrideprotected |
allocate_node() or allocate_array() depending on the size.
|
inlineoverrideprotected |
deallocate_node() or deallocate_array() depending on the size.
|
inlineoverrideprotectednoexcept |
*this is equal to other by comparing the addresses.
|
inlinenoexcept |
|
inlinenoexcept |