Will there be a copy in this case? #784
Replies: 1 comment
-
Nanobind won't perform an extra copy of the return value. Moving the result is not needed because of something known as "Return value optimization". |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm naive about whether return value optimization or the casters will avoid a copy here or if I need to use std::move or something else:
Beta Was this translation helpful? Give feedback.
All reactions