Accesses the pointee at the specified offset from this pointer.
- Xcode 6.3+
- Swift Standard Library
The offset from this pointer at which to access an instance, measured in strides of the pointer’s
For a pointer
p, the memory at
p + i must be initialized when reading the value by using the subscript. When the subscript is used as the left side of an assignment, the memory at
p + i must be initialized or the pointer’s
Pointee type must be a trivial type.
Do not assign an instance of a nontrivial type through the subscript to uninitialized memory. Instead, use an initializing method, such as