by sapiogram · 3y ago · 0 comments
I honestly don't think you can. If you try to iterate over values instead of references, you'll take ownership of the vector and not be able to use it again.
Same with any C++ class for which there is no copy constructor.