Instance Property

pointee

Accesses the instance referenced by this pointer.

Declaration

var pointee: Pointee { get nonmutating set }

Discussion

When reading from the pointee property, the instance referenced by this pointer must already be initialized. When pointee is used as the left side of an assignment, the instance must be initialized or this pointer’s Pointee type must be a trivial type.

Do not assign an instance of a nontrivial type through pointee to uninitialized memory. Instead, use an initializing method, such as initialize(to:count:).