---
title: "subscript(_:)"
framework: swift
role: symbol
role_heading: Instance Subscript
path: "swift/unsafepointer/subscript(_:)"
---

# subscript(_:)

Accesses the pointee at the specified offset from this pointer.

## Declaration

```swift
subscript(i: Int) -> Pointee { get }
```

## Parameters

- `i`: The offset from this pointer at which to access an instance, measured in strides of the pointer’s Pointee type.

## Overview

Overview For a pointer p, the memory at p + i must be initialized.
