RingBuffer

A ring buffer with fixed size

Constructors

this
this(size_t size)

Members

Functions

empty
bool empty()
front
T front()
full
bool full()
insert
void insert(T val)

Insert an element to the buffer

length
size_t length()
popFront
void popFront()

Removes the element in the front of the buffer

Parameters

T

Type of elements

Meta