<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "XPC",
  "identifier" : "/documentation/XPC/XPCArray/IndexValuePair",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "XPC"
    ],
    "preciseIdentifier" : "s:3XPC8XPCArrayV14IndexValuePaira"
  },
  "title" : "XPCArray.IndexValuePair"
}
-->

# XPCArray.IndexValuePair

A type that contains an index and the object at that index.

```
typealias IndexValuePair = (index: Int, value: xpc_object_t)
```

## Discussion

[`XPCArray`](/documentation/XPC/XPCArray) exposes its values as instances of [`xpc_object_t`](/documentation/XPC/xpc_object_t) even if they were originally set with other types.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)