Skip to content

[cxx-interop] Add CxxVector protocol #67772

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

Merged
merged 1 commit into from
Aug 7, 2023
Merged

Conversation

egorzhdan
Copy link
Contributor

This makes it possible to initialize std::vector from a Swift Sequence. This also conforms C++ vectors to ExpressibleByArrayLiteral, making it possible, for instance, to pass a Swift array to a C++ function that takes a vector of strings as a parameter.

rdar://104826995

This makes it possible to initialize `std::vector` from a Swift Sequence. This also conforms C++ vectors to `ExpressibleByArrayLiteral`, making it possible, for instance, to pass a Swift array to a C++ function that takes a vector of strings as a parameter.

rdar://104826995
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Aug 7, 2023
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

@egorzhdan egorzhdan merged commit 6261ee2 into main Aug 7, 2023
@egorzhdan egorzhdan deleted the egorzhdan/cxx-vector-proto branch August 7, 2023 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants