mn_basic_allocator.hpp
Go to the documentation of this file.
Definition: mn_basic_allocator.hpp:36
void on_dealloc(size_t size, size_t alignment)
Definition: mn_basic_allocator.hpp:42
bool on_pre_dealloc(size_t size, size_t alignment)
Definition: mn_basic_allocator.hpp:41
bool on_pre_alloc(size_t size, size_t alignment)
Definition: mn_basic_allocator.hpp:38
void on_alloc(size_t size, size_t alignment)
Definition: mn_basic_allocator.hpp:39
Definition: mn_basic_allocator.hpp:49
const void * const_pointer
Definition: mn_basic_allocator.hpp:57
pointer allocate(size_t size)
malloc() a buffer in a given TAllocator and cheak with the given TFilter is this okay to alloc
Definition: mn_basic_allocator.hpp:86
pointer allocate(size_t count, size_t size, size_t alignment=0)
malloc() a buffer in a given TAllocator and cheak with the given TFilter is this okay to alloc
Definition: mn_basic_allocator.hpp:98
size_t get_max_alocator_size() const noexcept
Get the maximal size to allocate.
Definition: mn_basic_allocator.hpp:173
typename TAllocator::allocator_category allocator_category
Definition: mn_basic_allocator.hpp:51
mn::ptrdiff_t difference_type
Definition: mn_basic_allocator.hpp:58
basic_allocator() noexcept
Definition: mn_basic_allocator.hpp:61
void deallocate(pointer address, size_t size) noexcept
free() a buffer in a given heap.
Definition: mn_basic_allocator.hpp:121
void destroy(Type *address) noexcept
Deconstruct a object (call deconstructor) and free the memory.
Definition: mn_basic_allocator.hpp:160
void deallocate(pointer address, size_t count, size_t size, size_t alignment) noexcept
free() a buffer in a given heap.
Definition: mn_basic_allocator.hpp:132
void deallocate(pointer address, size_t size, size_t alignment) noexcept
free() a buffer in a given heap.
Definition: mn_basic_allocator.hpp:109
Type * construct(Args &&... args)
Construct a object from allocated impl.
Definition: mn_basic_allocator.hpp:146
typename TAllocator::is_thread_safe is_thread_safe
Definition: mn_basic_allocator.hpp:52
pointer allocate(size_t size, size_t alignment)
malloc() a buffer in a given TAllocator and cheak with the given TFilter is this okay to alloc
Definition: mn_basic_allocator.hpp:70
void * allocate(const TAlloC &alloc, size_t size, size_t alignment, mn::memory::std_allocator_tag)
Definition: mn_allocator_typetraits.hpp:52
void * deallocate(const TAlloC &alloc, void *address, size_t size, size_t alignment, mn::memory::std_allocator_tag)
Definition: mn_allocator_typetraits.hpp:63
Definition: mn_allocator_typetraits.hpp:25