Skip to content

Commit 6bb6427

Browse files
authored
Merge pull request #67647 from apple/egorzhdan/mutable-ptr-mutable-iterator
[cxx-interop] Conform Swift pointers to `UnsafeCxxMutableInputIterator`
2 parents 0591975 + dd2648b commit 6bb6427

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/Cxx/UnsafeCxxIterators.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ public protocol UnsafeCxxMutableInputIterator: UnsafeCxxInputIterator {
6161
override var pointee: Pointee { get set }
6262
}
6363

64+
extension UnsafeMutablePointer: UnsafeCxxMutableInputIterator {}
65+
6466
/// Bridged C++ iterator that allows computing the distance between two of its
6567
/// instances, and advancing an instance by a given number of elements.
6668
///

0 commit comments

Comments
 (0)