extendLifetime(_:)
Extends the lifetime of the given instance.
Declaration
func extendLifetime<T>(_ x: borrowing T) where T : ~Copyable, T : ~EscapableParameters
- x:
An instance to preserve until this function returns.
Extends the lifetime of the given instance.
func extendLifetime<T>(_ x: borrowing T) where T : ~Copyable, T : ~EscapableAn instance to preserve until this function returns.