swift 之检查某个引用是否只有一个持有者的方法

/// - Parameter object: An instance of a class. This function does *not* modify
///   `object`; the use of `inout` is an implementation artifact.
/// - Returns: `true` if `object` is known to have a single strong reference;
///   otherwise, `false`.
public func isKnownUniquelyReferenced(_ object: inout T) -> Bool where T : AnyObject

你可能感兴趣的:(swift 之检查某个引用是否只有一个持有者的方法)