FixedRingQueue.push

Pushes an element into the queue and returns a pointer to that element. The value of the element must then be copied to the location pointed to before calling push() or pop() the next time.

  1. bool push(T element)
  2. T* push()
    class FixedRingQueue(T)
    T*
    push
    ()

Return Value

Type: T*

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

Meta