-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[cxx-interop] Add CxxRandomAccessCollection
protocol
#61554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci please smoke test |
0e52c17
to
4a93e95
Compare
@swift-ci please smoke test |
This helps to bridge C++ random access collections, such as `std::vector` and `std::string`, to Swift by conforming them to `Swift.RandomAccessCollection`
4a93e95
to
bc16131
Compare
@swift-ci please smoke test |
@swift-ci please smoke test macOS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really great. As always, a very high quality patch. Thanks Egor!
It will be interesting to see how this changes any std::vector benchmarks (maybe we should add some more). |
And I assume you'll add automatic conformance in a follow up patch? |
Sure, I'll add automatic conformances in another patch. |
@swift-ci please benchmark |
benchmark is disabled for now so you won't get results |
@swift-ci please smoke test |
@swift-ci please smoke test Windows |
@swift-ci please smoke test Linux |
This helps to bridge C++ random access collections, such as
std::vector
andstd::string
, to Swift by conforming them toSwift.RandomAccessCollection
.