FixedRingQueue

Ring queue for elements of type T, T must be a value type.

Constructors

this
this(size_t max_items)

Constructor

Members

Functions

pop
bool pop(T element)

Pops an element from the queue.

pop
T* pop()

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

push
bool push(T element)

Pushes an element into the queue.

push
T* 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.

Meta