4#ifndef WPI_MEMORY_MALLOC_ALLOCATOR_HPP_INCLUDED
5#define WPI_MEMORY_MALLOC_ALLOCATOR_HPP_INCLUDED
12#if !WPI_HOSTED_IMPLEMENTATION
13#error "This header is only available for a hosted implementation."
21#if WPI_MEMORY_EXTERN_TEMPLATE
29 struct allocator_info;
39 return std::malloc(size);
49 return std::allocator_traits<std::allocator<char>>::max_size({});
54 malloc_alloator_leak_checker)
63#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
implementation_defined malloc_allocator
A stateless RawAllocator that allocates memory using std::malloc().
Definition malloc_allocator.hpp:60
#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 malloc_allocator.hpp:34
static allocator_info info() noexcept
static std::size_t max_node_size() noexcept
Definition malloc_allocator.hpp:47
static void deallocate(void *ptr, std::size_t, std::size_t) noexcept
Definition malloc_allocator.hpp:42
static void * allocate(std::size_t size, std::size_t) noexcept
Definition malloc_allocator.hpp:37