---
title: "getIndexes(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsindexpath/getindexes(_:)"
---

# getIndexes(_:)

Copies the objects contained in the index path into indexes.

## Declaration

```swift
func getIndexes(_ indexes: UnsafeMutablePointer<Int>)
```

## Parameters

- `indexes`: Pointer to a C array of objects of size at least the length of the index path. On return, the index path’s indexes.

## Discussion

Discussion You must allocate the memory for the C array.

## See Also

### Working with Indexes

- [index(atPosition:)](foundation/nsindexpath/index(atposition:).md)
- [getIndexes(_:range:)](foundation/nsindexpath/getindexes(_:range:).md)
