Contents

deinitializeElement(at:)

Deinitializes the memory underlying the element at index.

Declaration

func deinitializeElement(at index: UnsafeMutableBufferPointer<Element>.Index)

Parameters

  • index:

    The index of the buffer element to deinitialize.

Discussion

The memory underlying the element at index must be initialized. After calling deinitializeElement(), the memory underlying this element of the buffer is uninitialized, and still bound to type Element.