CxxSequence

Use this protocol to conform custom C++ sequence types to Swift’s Sequence protocol like this:

protocol CxxSequence<Element> : CxxConvertibleToCollection, Sequence
Browse conforming types
extension MyCxxSequenceType : CxxSequence {}

This requires the C++ sequence type to define const methods begin() and end() which return input iterators into the C++ sequence. The iterator types must conform to UnsafeCxxInputIterator.