mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Iterating over a `CxxSequence` that is not a `CxxRandomAccessCollection` triggers a copy of the C++ collection. Let's disable the automatic conformances until we find a more efficient solution. This means that for now developers won't be able to iterate over a `std::set` or `std::list` with a Swift for-in loop. I will submit a separate patch with an alternative solution for such types. C++ random access collections, such as `std::vector` or `std::string`, are not affected.
787 B
787 B