A helper function to pop an item from ITypedQueue.
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
ITypedQueue and apply desired logic on returned pointer and then call
discardTop().
A helper function to pop an item from ITypedQueue.
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 ITypedQueue and apply desired logic on returned pointer and then call discardTop().