diff options
Diffstat (limited to 'pw_allocator/public/pw_allocator/freelist_heap.h')
-rw-r--r-- | pw_allocator/public/pw_allocator/freelist_heap.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pw_allocator/public/pw_allocator/freelist_heap.h b/pw_allocator/public/pw_allocator/freelist_heap.h index 673302627..5c6b12b74 100644 --- a/pw_allocator/public/pw_allocator/freelist_heap.h +++ b/pw_allocator/public/pw_allocator/freelist_heap.h @@ -24,6 +24,8 @@ namespace pw::allocator { class FreeListHeap { public: + using BlockType = Block<>; + template <size_t kNumBuckets> friend class FreeListHeapBuffer; struct HeapStats { @@ -44,7 +46,7 @@ class FreeListHeap { void LogHeapStats(); private: - span<std::byte> BlockToSpan(Block* block) { + span<std::byte> BlockToSpan(BlockType* block) { return span<std::byte>(block->UsableSpace(), block->InnerSize()); } |