pop

A helper function to pop from IUntypedQueue.

Note: this function performs a shallow copy of the popped item into t. if this is not desired, the caller class is to call top() method of IUntypedQueue and apply desired logic on returned pointer and then call discardTop().

bool
pop
(,
ref void[] t
)

Parameters

q IUntypedQueue

A queue to pop from

t void[]

will hold the item popped from q, when function ends

Return Value

Type: bool

true if top item was popped and copied to t, false otherwise

Meta