mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
This commit is contained in:
@@ -82,7 +82,7 @@ public protocol _ArrayBufferProtocol : MutableCollection {
|
||||
/// underlying contiguous storage. If no such storage exists, it is
|
||||
/// created on-demand.
|
||||
func withUnsafeBufferPointer<R>(
|
||||
@noescape _ body: (UnsafeBufferPointer<Element>) throws -> R
|
||||
_ body: @noescape (UnsafeBufferPointer<Element>) throws -> R
|
||||
) rethrows -> R
|
||||
|
||||
/// Call `body(p)`, where `p` is an `UnsafeMutableBufferPointer`
|
||||
@@ -90,7 +90,7 @@ public protocol _ArrayBufferProtocol : MutableCollection {
|
||||
///
|
||||
/// - Precondition: Such contiguous storage exists or the buffer is empty.
|
||||
mutating func withUnsafeMutableBufferPointer<R>(
|
||||
@noescape _ body: (UnsafeMutableBufferPointer<Element>) throws -> R
|
||||
_ body: @noescape (UnsafeMutableBufferPointer<Element>) throws -> R
|
||||
) rethrows -> R
|
||||
|
||||
/// The number of elements the buffer stores.
|
||||
|
||||
Reference in New Issue
Block a user