---
title: "init(mutating:)"
framework: swift
role: symbol
role_heading: Initializer
path: "swift/unsafemutablerawpointer/init(mutating:)-3ws4f"
---

# init(mutating:)

Creates a new mutable raw pointer from the given immutable raw pointer.

## Declaration

```swift
init?(mutating other: UnsafeRawPointer?)
```

## Parameters

- `other`: The immutable raw pointer to convert. If other is nil, the result is nil.

## Discussion

Discussion Use this initializer to explicitly convert other to an UnsafeMutableRawPointer instance. This initializer creates a new pointer to the same address as other and performs no allocation or copying.
