IAllocator.IParkingStack

Helper class to temprarily park a certain number of objects.

Constructors

this
this(size_t max_length)

Constructor.

Members

Functions

max_length
size_t max_length()

Maximum number of objects as passed to the constructor.

opApply
int opApply(int delegate(ref void* object) dg)

'foreach' iteration, each cycle pops an element from the stack and iterates over it.

pop
void* pop()

Pops an object from the stack.

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)

Pushes an object on the stack.

push_
void push_(void* object, size_t n)

Pushes an object on the stack.

Meta