protocol CxxRandomAccessCollection<Element> : CxxSequence, RandomAccessCollection where Self.RawIterator : UnsafeCxxRandomAccessIterator
A collection that supports backward as well as forward traversal.
A sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.
A C++ type that can be converted to a Swift collection.
Use this protocol to conform custom C++ sequence types to Swift’s
Sequenceprotocol like this:
A collection that supports efficient random-access index traversal.
A type that provides sequential, iterated access to its elements.