mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This teaches ClangImporter to synthesize conformances of C++ iterator types to `UnsafeCxxInputIterator` protocol from the `Cxx` module. We consider a C++ type to be an iterator if it defines a subtype (usually a typedef or a using decl) called `iterator_category` that inherits from `std::input_iterator_tag`. rdar://96235368
6 lines
142 B
Plaintext
6 lines
142 B
Plaintext
module CustomSequence {
|
|
header "custom-iterator.h" // TODO: extract into another module
|
|
header "custom-sequence.h"
|
|
requires cplusplus
|
|
}
|