deinitializeElement(at:)
Deinitializes the memory underlying the element at index.
Declaration
func deinitializeElement<Element>(at index: UnsafeMutableBufferPointer<Element>.Index) where Base == UnsafeMutableBufferPointer<Element>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 slice is uninitialized, and still bound to type Element.