Skip to content

Commit 8e5c234

Browse files
author
mkandil
committed
add __beginUnsafe in filter and cxxDictionary
1 parent eb2d42e commit 8e5c234

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

stdlib/public/Cxx/CxxDictionary.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public protocol CxxDictionary where Key: Hashable {
2323
/// Do not implement this function manually in Swift.
2424
func __findUnsafe(_ key: Key) -> RawIterator
2525

26+
/// Do not implement this function manually in Swift.
27+
func __beginUnsafe() -> RawIterator
28+
2629
/// Do not implement this function manually in Swift.
2730
func __endUnsafe() -> RawIterator
2831
}
@@ -43,7 +46,7 @@ extension CxxDictionary {
4346
_ isIncluded: (_ key: Key, _ value: Value) throws -> Bool
4447
) rethrows -> [Key: Value] {
4548
var filteredDictionary: [Key: Value] = [:]
46-
var iterator = __findUnsafe(Key)
49+
var iterator = __beginUnsafe(Key)
4750
let endIterator = __endUnsafe()
4851

4952
while iterator != endIterator {

0 commit comments

Comments
 (0)