CircularBuffer.put

Append an item to the buffer.

If it would be put beyond the end of the buffer, it will wrap around and truncate old values.

struct CircularBuffer(T, Flag!"dynamic" dynamic = No.dynamic, size_t originalSize = 16)
pure @safe @nogc nothrow
void
put
()
if (
originalSize > 1
)

Parameters

item T

Item to add.

Meta