Deinitializes the specified number of values starting at this pointer.
SDK
- Xcode 8.0+
Framework
- Swift Standard Library
Declaration
@discardableResult func deinitialize(count: Int) -> Unsafe Mutable Raw Pointer
Parameters
count
The number of instances to deinitialize.
count
must not be negative.
Return Value
A raw pointer to the same address as this pointer. The memory referenced by the returned raw pointer is still bound to Pointee
.
Discussion
The region of memory starting at this pointer and covering count
instances of the pointer’s Pointee
type must be initialized. After calling deinitialize(count:)
, the memory is uninitialized, but still bound to the Pointee
type.