IBucketElementFreeList.ParkingStack

Allows using the free list as a stack to park objects without marking them as free. The parked object are appended to the free list after the free objects currently in the list. At most one ParkingStack instance may exist at a time. While a ParkingStack instance exists, no public FreeList method may be used.

class IBucketElementFreeList
class ParkingStack : IParkingStack {}

Destructor

~this
~this()

Destructor; removes the remaining stack elements, if any.

Members

Functions

pop_
void* pop_(size_t n)

Pops an object from the stack. This method is never called if the stack is empty.

push_
void push_(void* object, size_t n)

Pushes an object on the stack.

Meta