Contents

extendLifetime(_:)

Extends the lifetime of the given instance.

Declaration

func extendLifetime<T>(_ x: borrowing T) where T : ~Copyable, T : ~Escapable

Parameters

  • x:

    An instance to preserve until this function returns.

See Also

Reference Counting