#include <fast_sorted.h>
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.