RingBufferNoGC

@nogc ring-buffer

Constructors

this
this(size_t initialCapacity)

Create a RingBuffer with specified initial capacity.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

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

Removes all items from the queue.

front
T front()
isFull
bool isFull()
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length()
opIndex
T opIndex(size_t index)
popBack
T popBack()

Removes an item from the back of the queue.

popFront
T popFront()

Removes an item from the front of the queue.

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