etl/docs/containers/fixed-sized-memory-block-allocator.md
John Wellbelove b09bb9448e New documentation files.
Harmonised file name format
2026-05-18 07:57:12 +01:00

682 B

title
fixed_sized_memory_block_allocator

{{< callout >}} Header: fixed_sized_memory_block_allocator.h
{{< /callout >}}

A fixed capacity memory block pool.
Implements an etl::imemory_block_allocator.

template <size_t VBlock_Size, size_t VAlignment, size_t VSize>
class fixed_sized_memory_block_allocator : public imemory_block_allocator

Template parameters

VBlock_Size

The required size of each block.


VAlignment

The required alignment of each block.


VSize

The number of blocks.

Constants

size_t Block_Size = VBlock_Size;
size_t Alignment  = VAlignment;
size_t Size       = VSize;