DynamicQueue.push

Reserves space for an element of the size T.sizeof at the queue and returns a pointer to it. The value of the element must then be copied to the location pointed to before calling push() or pop() the next time.

  1. T* push()
    class DynamicQueue(T)
    override
    T*
    push
    ()
  2. bool push(T element)

Return Value

Type: T*

pointer to the element pushed into the queue or null if the queue is full.

Meta