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().
A queue to pop from
will hold the item popped from q, when function ends
true if top item was popped and copied to t, false otherwise
See Implementation
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().