Index
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:)
.
Note
Every index is invalidated as soon as you perform a length-changing operating on theCircularBuffer
but remains valid when you replace one item by another using the subscript.
-
Declaration
Swift
@inlinable public static func == (lhs: Index, rhs: Index) -> Bool
-
Declaration
Swift
@inlinable public static func < (lhs: Index, rhs: Index) -> Bool