Contents

ObjectIdentifier

A unique identifier for a class instance, actor instance, or metatype.

Declaration

@frozen struct ObjectIdentifier

Overview

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

In Swift, only instances of classes, instances of actors, and metatypes have unique identities. There’s no notion of identity for structures, enumerations, functions, or tuples.

Topics

Initializers

Default Implementations

See Also

Querying Runtime Values