A helper function to push an item into ITypedQueue.
Note: this function performs a shallow copy of t into the queue. If this is not desired, the caller class is to call push() method of ITypedQueue and apply desired logic on returned pointer.
type of items stored in queue
A queue to push into
An item to push into q
true if t pushed into q, false otherwise
See Implementation
A helper function to push an item into ITypedQueue.
Note: this function performs a shallow copy of t into the queue. If this is not desired, the caller class is to call push() method of ITypedQueue and apply desired logic on returned pointer.