Function RingBuffer.opIndex

Mutable logical indexed access independent of physical wraparound.

ref T opIndex(
  size_t logicalIndex
) scope;

ref const(T) opIndex(
  size_t logicalIndex
) scope const;

Precondition

logicalIndex is less than length.