<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/AutoreleasingUnsafeMutablePointer/init(_:)-7rndr",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:SAySAyxGSgSpyqd__GSgclufc"
  },
  "title" : "init(_:)"
}
-->

# init(_:)

Explicit construction from an UnsafeMutablePointer.

```
init?<U>(_ from: UnsafeMutablePointer<U>?)
```

## Discussion

Returns nil if `from` is nil.

This is inherently unsafe; UnsafeMutablePointer assumes the
referenced memory has +1 strong ownership semantics, whereas
AutoreleasingUnsafeMutablePointer implies +0 semantics.

> Warning: Accessing `pointee` as a type that is unrelated to
> the underlying memory’s bound type is undefined.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)