RingBufferNoGC

@nogc ring-buffer

Constructors

this
this(size_t initialCapacity)

Create a RingBuffer with specified initial capacity.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Postblit

A postblit is present on this object, but not explicitly documented in the source.

Members

Functions

back
T back()
capacity
size_t capacity()
clear
void clear()

Removes all items from the queue.

front
T front()
length
size_t length()
opIndex
T opIndex(size_t index)
popBack
T popBack()

Removes an item from the back of the queue. Returns: the removed item.

popFront
T popFront()

Removes an item from the front of the queue. Returns: the removed item.

pushBack
void pushBack(T x)

Adds an item on the back of the queue.

pushFront
void pushFront(T x)

Adds an item on the front of the queue.

Meta