SlotPool.heapPop

bool heapPop(out uint outIndex) @trusted nothrow @nogc

Pop the oldest entry from the min-heap, skipping stale entries.

Skips entries whose slot generation has changed (released/reused).

Parameters

outIndexReceives the slot index of the oldest valid entry.

Returns

true if a valid entry was found, false if the heap is empty.