获得徽章 0
- 请问个swift问题
func withUnsafePointer<T, Result>(to value: inout T, _ body: (UnsafePointer<T>) throws -> Result) rethrows -> Result
这个方法调用的时候 为什么这么写
withUnsafePointer(to: &array2) { print($0)}
不会报错呢,这是怎么省略的呢展开评论点赞 - swift 问题,请问下在ExpressibleByStringInterpolation协议中
associatedtype StringInterpolation : StringInterpolationProtocol = DefaultStringInterpolation where Self.StringLiteralType == Self.StringInterpolation.StringLiteralType中的where 限定的是哪部分呢展开评论点赞