4#ifndef WPI_MEMORY_HEAP_ALLOCATOR_HPP_INCLUDED
5#define WPI_MEMORY_HEAP_ALLOCATOR_HPP_INCLUDED
13#if WPI_MEMORY_EXTERN_TEMPLATE
56 static void deallocate(
void*
ptr, std::size_t size, std::size_t)
noexcept
65 heap_alloator_leak_checker)
73 WPI_IMPL_DEFINED(
detail::lowlevel_allocator<
detail::heap_allocator_impl>);
75#if WPI_MEMORY_EXTERN_TEMPLATE
The default specialization of the wpi::memory::allocator_traits.
The default specialization of the allocator_traits for a RawAllocator.
Definition allocator_traits.hpp:292
Definition lowlevel_allocator.hpp:37
void heap_dealloc(void *ptr, std::size_t size) noexcept
Deallocates heap memory.
void * heap_alloc(std::size_t size) noexcept
Allocates heap memory.
implementation_defined heap_allocator
A stateless RawAllocator that allocates memory from the heap.
Definition heap_allocator.hpp:72
#define WPI_MEMORY_LL_ALLOCATOR_LEAK_CHECKER(functor, var_name)
Definition lowlevel_allocator.hpp:79
detail namespace with internal helper functions
Definition input_adapters.h:32
Implement std::hash so that hash_code can be used in STL containers.
Definition PointerIntPair.h:280
Memory namespace.
Definition heap_allocator.hpp:20
Foonathan namespace.
Definition ntcore_cpp.h:26
Contains information about an allocator.
Definition error.hpp:23
Definition heap_allocator.hpp:48
static allocator_info info() noexcept
static void * allocate(std::size_t size, std::size_t) noexcept
Definition heap_allocator.hpp:51
static void deallocate(void *ptr, std::size_t size, std::size_t) noexcept
Definition heap_allocator.hpp:56
static std::size_t max_node_size() noexcept