Merge remote-tracking branch 'origin/master' into swift-3-indexing-model

This commit is contained in:
Dmitri Gribenko
2016-04-16 00:30:12 -07:00
173 changed files with 5082 additions and 4411 deletions

View File

@@ -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.