mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[cxx-interop] Add UnsafeCxxMutableInputIterator protocol
This is an inheritor of the existing `UnsafeCxxInputIterator` protocol, with the only difference being the ability to mutate `var pointee` via a non-const `operator*()`. This is needed to support mutable subscripts for `std::map` via `CxxDictionary`. rdar://105399019
This commit is contained in:
@@ -116,6 +116,7 @@ PROTOCOL(CxxRandomAccessCollection)
|
||||
PROTOCOL(CxxSequence)
|
||||
PROTOCOL(CxxUniqueSet)
|
||||
PROTOCOL(UnsafeCxxInputIterator)
|
||||
PROTOCOL(UnsafeCxxMutableInputIterator)
|
||||
PROTOCOL(UnsafeCxxRandomAccessIterator)
|
||||
|
||||
PROTOCOL(AsyncSequence)
|
||||
|
||||
Reference in New Issue
Block a user