StaticRingBuffer.opIndex

random access operator

struct StaticRingBuffer(size_t size, T)
ref
opIndex
(
size_t idx
)

Examples

{
	StaticRingBuffer!(2, int) foo;

	foo ~= 1;

	assert(foo[0] == 1);

	foo[0] = 2;

	assert(foo[0] == 2)

Meta