mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-16 00:46:03 +08:00
682 B
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;