__ArrayType

protocol __ArrayType
Inheritance _CollectionType, _SequenceType View Protocol Hierarchy →
Associated Types
_Buffer : _ArrayBufferType
Index : ForwardIndexType

A type that represents a valid position in the collection.

Valid indices consist of the position of every element and a "past the end" position that's not valid for use as a subscript.

_Element

A type that represents a valid position in the collection.

Valid indices consist of the position of every element and a "past the end" position that's not valid for use as a subscript.

Import import Swift

Instance Variables

var _buffer: _Buffer Required

Declaration

var _buffer: _Buffer { get }
var count: Int Required

Declaration

var count: Int { get }
var endIndex: Index Required

The collection's "past the end" position.

endIndex is not a valid argument to subscript, and is always reachable from startIndex by zero or more applications of successor().

Declaration

var endIndex: Index { get }

Declared In

_CollectionType
var startIndex: Index Required

The position of the first element in a non-empty collection.

Identical to endIndex in an empty collection.

Declaration

var startIndex: Index { get }

Declared In

_CollectionType

Subscripts

subscript(_: Index) Required

Declaration

subscript(_i: Index) -> _Element { get }

Declared In

_CollectionType

Instance Methods

func _doCopyToNativeArrayBuffer() Required

Declaration

func _doCopyToNativeArrayBuffer() -> _ContiguousArrayBuffer<Self._Element>