-
Notifications
You must be signed in to change notification settings - Fork 89
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
Pass std::vector without copy #12
Comments
This example passes a list by reference : https://github.com/tdegeus/pybind11_examples/blob/master/01_py-list_cpp-vector/example.cpp |
Dear @tdegeus , By returning the output, doesn't it copy the data to a new vector? |
Ah @petrasvestartas . Ah yeah you are right, I did not look further than the input as I assumed your question to be about that. What is your question then actually about:
Or is your question about yet something else? |
The second. |
Hi,
In your examples of std::vector, data is copied.
Is there any example that shows how to bind vectors by reference instead of copy?
The text was updated successfully, but these errors were encountered: