Skip to content

Commit 281b0c5

Browse files
author
mkandil
committed
add __beginUnsafe in filter and cxxDictionary
1 parent e30b8fd commit 281b0c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/Cxx/CxxDictionary.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public protocol CxxDictionary where Key: Hashable {
3838
/// Do not implement this function manually in Swift.
3939
@discardableResult
4040
mutating func erase(_ key: Key) -> Size
41+
func __beginUnsafe() -> RawIterator
4142

4243
/// Do not implement this function manually in Swift.
4344
func __endUnsafe() -> RawIterator
@@ -62,7 +63,7 @@ extension CxxDictionary {
6263
_ isIncluded: (_ key: Key, _ value: Value) throws -> Bool
6364
) rethrows -> [Key: Value] {
6465
var filteredDictionary: [Key: Value] = [:]
65-
var iterator = __findUnsafe(Key)
66+
var iterator = __beginUnsafe(Key)
6667
let endIterator = __endUnsafe()
6768

6869
while iterator != endIterator {

0 commit comments

Comments
 (0)