public struct Index : Comparable

An opaque CircularBuffer index.

You may get indices offset from other indices by using CircularBuffer.index(:offsetBy:), CircularBuffer.index(before:), or CircularBuffer.index(after:).


Every index is invalidated as soon as you perform a length-changing operating on the CircularBuffer but remains valid when you replace one item by another using the subscript.
  • Declaration


    public static func < (lhs: Index, rhs: Index) -> Bool