etl/docs/containers/memory/fixed-sized-memory-block-allocator.md
2026-05-26 10:19:37 +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;