---
title: endIndex
framework: swift
role: symbol
role_heading: Instance Property
path: swift/unsafemutablebufferpointer/endindex
---

# endIndex

The “past the end” position—that is, the position one greater than the last valid subscript argument.

## Declaration

```swift
var endIndex: Int { get }
```

## Discussion

Discussion The endIndex property of an UnsafeMutableBufferPointer instance is always identical to count.
