push

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.

bool
push
(
T
)
(,
T t
)

Parameters

T

type of items stored in queue

q ITypedQueue!(T)

A queue to push into

t T

An item to push into q

Return Value

Type: bool

true if t pushed into q, false otherwise

Meta