mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Restore Array value semantics
'nuff said. Swift SVN r18923
This commit is contained in:
@@ -123,6 +123,10 @@ struct ContiguousArrayBuffer<T> : ArrayBufferType, LogicValue {
|
||||
return isUniquelyReferenced() && capacity >= minimumCapacity ? self : nil
|
||||
}
|
||||
|
||||
mutating func isMutableAndUniquelyReferenced() -> Bool {
|
||||
return isUniquelyReferenced()
|
||||
}
|
||||
|
||||
/// If this buffer is backed by a ContiguousArrayBuffer, return it.
|
||||
/// Otherwise, return nil. Note: the result's elementStorage may
|
||||
/// not match ours, if we are a SliceBuffer.
|
||||
|
||||
Reference in New Issue
Block a user