Instance Method

successor()

Returns a pointer to the next consecutive instance.

Declaration

func successor() -> UnsafeMutablePointer<Pointee>

Return Value

A pointer advanced from this pointer by MemoryLayout<Pointee>.stride bytes.

Discussion

The resulting pointer must be within the bounds of the same allocation as this pointer.