You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[stdlib][WIP] Eliminate (Closed)CountableRange using conditional conformance (#13342)
* Make Range conditionally a Collection
* Convert ClosedRange to conditionally a collection
* De-gyb Range/ClosedRange, refactoring some methods.
* Remove use of Countable{Closed}Range from stdlib
* Remove Countable use from Foundation
* Fix test errors and warnings resulting from Range/CountableRange collapse
* fix prespecialize test for new mangling
* Update CoreAudio use of CountableRange
* Update SwiftSyntax use of CountableRange
* Restore ClosedRange.Index: Hashable conformance
* Move fixed typechecker slowness test for array-of-ranges from slow to fast, yay
* Apply Doug's patch to loosen test to just check for error
/// - parameter buffer: A buffer to copy the data into.
219
219
/// - parameter range: A range in the data to copy into the buffer. If the range is empty, this function will return 0 without copying anything. If the range is nil, as much data as will fit into `buffer` is copied.
220
220
/// - returns: Number of bytes copied into the destination buffer.
221
-
publicfunc copyBytes<DestinationType>(to buffer:UnsafeMutableBufferPointer<DestinationType>, from range:CountableRange<Index>?=nil)->Int{
221
+
publicfunc copyBytes<DestinationType>(to buffer:UnsafeMutableBufferPointer<DestinationType>, from range:Range<Index>?=nil)->Int{
0 commit comments