<!--
{
  "documentType" : "article",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/ObjectIdentifier/AtomicOptionalRepresentable-Implementations",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "AtomicOptionalRepresentable Implementations"
}
-->

# AtomicOptionalRepresentable Implementations

## Topics

### Type Aliases

[`typealias AtomicOptionalRepresentation`](/documentation/Swift/ObjectIdentifier/AtomicOptionalRepresentation)

The storage representation type that encodes to and decodes from
`Optional<Self>` which is a suitable type when used in atomic operations
on `Optional`.

### Type Methods

[`static func decodeAtomicOptionalRepresentation(consuming ObjectIdentifier.AtomicOptionalRepresentation) -> ObjectIdentifier?`](/documentation/Swift/ObjectIdentifier/decodeAtomicOptionalRepresentation(_:))

Recovers the logical atomic type `Self?` by destroying some
`AtomicOptionalRepresentation` storage instance returned from an atomic
operation on `Optional`.

[`static func encodeAtomicOptionalRepresentation(consuming ObjectIdentifier?) -> ObjectIdentifier.AtomicOptionalRepresentation`](/documentation/Swift/ObjectIdentifier/encodeAtomicOptionalRepresentation(_:))

Destroys a value of `Self` and prepares an `AtomicOptionalRepresentation`
storage type to be used for atomic operations on `Optional`.

---

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)