Pigweed
 
Loading...
Searching...
No Matches
pw::allocator::GenericFastSortedItem Struct Reference

#include <fast_sorted.h>

Inheritance diagram for pw::allocator::GenericFastSortedItem:

Detailed Description

Generic type with the same layout as a FastSortedItem<BlockType>.

FastSortedItem depends on a BlockType, in order to return the block's inner size as a sorting key. BlockType definitions like DetailedBlock take a WhenFree parameter that describes the layout of memoryused to track the block when free. The WhenFree parameter then should be FastSortedItem, but cannot be due to the circular dependency. Instead, this type provides same layout without depending on BlockType, and thus can be used when defining the block.


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