mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[stdlib] Restore Array value semantics
'nuff said. Swift SVN r18923
This commit is contained in:
@@ -183,6 +183,10 @@ extension ArrayBuffer {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
mutating func isMutableAndUniquelyReferenced() -> Bool {
|
||||
return Swift.isUniquelyReferenced(&storage) && _hasMutableBuffer
|
||||
}
|
||||
|
||||
/// If this buffer is backed by a ContiguousArrayBuffer, return it.
|
||||
/// Otherwise, return nil. Note: the result's elementStorage may
|
||||
|
||||
Reference in New Issue
Block a user