---
title: deinitialize()
framework: swift
role: symbol
role_heading: Instance Method
path: swift/unsafemutablebufferpointer/deinitialize()
---

# deinitialize()

Deinitializes every instance in this buffer.

## Declaration

```swift
@discardableResult func deinitialize() -> UnsafeMutableRawBufferPointer
```

## Return Value

Return Value A raw buffer to the same range of memory as this buffer. The range of memory is still bound to Element.

## Discussion

Discussion The region of memory underlying this buffer must be fully initialized. After calling deinitialize(count:), the memory is uninitialized, but still bound to the Element type. note: All buffer elements must already be initialized.
