StaticRingBuffer.opOpAssign

append operator

struct StaticRingBuffer(size_t size, T)
ref @trusted nothrow
opOpAssign
(
string op
)
(
T v
)
if (
op == "~"
)

Examples

{
	StaticRingBuffer!(2, int) foo;

	// append operator
	foo ~= 1;
	foo ~= 2;

	assert(foo[0] == 1);
	assert(foo[1] == 2)

Meta