-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[cxx-interop] Allow removing elements from std::vector
#69433
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
base: main
Are you sure you want to change the base?
Conversation
@swift-ci please smoke test |
The test is failing on Windows because
|
c3ffea2
to
3b19e59
Compare
@swift-ci please smoke test |
3b19e59
to
523a2c0
Compare
523a2c0
to
6eb70df
Compare
@swift-ci please smoke test |
@swift-ci please smoke test Linux |
6eb70df
to
487e8e5
Compare
@swift-ci please smoke test |
487e8e5
to
288a0d6
Compare
@swift-ci please smoke test |
288a0d6
to
88dca49
Compare
@swift-ci please smoke test |
@swift-ci please test Windows |
This adds `func remove(at index: Int)` to all instantiations of `std::vector` via an extension for `protocol CxxVector`. The original C++ method `std::vector::erase` is not visible in Swift because all of its overloads return unsafe iterators. rdar://113704853
88dca49
to
fcbfc49
Compare
@swift-ci please test Windows |
This adds
func remove(at index: Int)
to all instantiations ofstd::vector
via an extension forprotocol CxxVector
.The original C++ method
std::vector::erase
is not visible in Swift because all of its overloads return unsafe iterators.rdar://113704853