Library of Assembled Shared Sources
lass::util::AllocatorSimpleBlock< requestedBlockSize, FixedAllocator > Class Template Reference

A simple fixed-size block allocator. More...

#include <allocator.h>

Inheritance diagram for lass::util::AllocatorSimpleBlock< requestedBlockSize, FixedAllocator >:
Collaboration diagram for lass::util::AllocatorSimpleBlock< requestedBlockSize, FixedAllocator >:

Detailed Description

template<size_t requestedBlockSize = 8192, typename FixedAllocator = AllocatorFixed<AllocatorMalloc>>
class lass::util::AllocatorSimpleBlock< requestedBlockSize, FixedAllocator >

A simple fixed-size block allocator.

  • concept: FixedAllocator
  • thread UNSAFE.
  • not copy-constructible, not assignable
  • The blocks are only deallocated at destruction time to simplify the allocation/deallocation logic. However, nodes that are deallocate can still be reused.
  • It is NOT SAFE to deallocate memory using another instance of AllocatorSimpleBlock than the one used to allocate it.

Definition at line 978 of file allocator.h.


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