ObjectIdentifier

    A unique identifier for a class instance or metatype.

    @frozen struct ObjectIdentifier

    This unique identifier is only valid for comparisons during the lifetime of the instance.

    In Swift, only class instances and metatypes have unique identities. There is no notion of identity for structs, enums, functions, or tuples.

    Citizens in Swift

    Conformances

    Type members

    Instance members

    Type features

    Available in Synchronization

    Conformances

    • protocol AtomicOptionalRepresentable

      An atomic value that also supports atomic operations when wrapped in an Optional. Atomic optional representable types come with a standalone atomic representation for their optional-wrapped variants.

    • protocol AtomicRepresentable

      A type that supports atomic operations through a separate atomic storage representation.

    Typealiases

    Type members