Instance Method インスタンスメソッド

predecessor()

Returns a pointer to the previous consecutive instance. 前の隣接インスタンスへのポインタを返します。

Declaration 宣言

func predecessor() -> AutoreleasingUnsafeMutablePointer<Pointee>

Return Value 戻り値

A pointer shifted backward from this pointer by MemoryLayout<Pointee>.stride bytes. このポインタから後ろへMemoryLayout<Pointee>.strideバイトだけずらされるポインタを返します。

Discussion 解説

The resulting pointer must be within the bounds of the same allocation as this pointer. 結果のポインタは、このポインタと同じアロケーションの範囲内でなければなりません。