If a C++ function returns some heavy object by value should I capture it by const ref or by value?
If a C++ function returns some heavy object by value should I capture it by const ref or by value?
I hope you found a solution that worked for you :)
The Content is licensed under (https://meta.stackexchange.com/help/licensing) CC BY-SA.
Attention! This video does always use the same license as the source!
Thanks to all those great people for their contributions!
(stackoverflow.com/users/853791/bobeff)bobeff
(stackoverflow.com/users/17167312/homer512)Homer512
A special thanks goes out to the (stackoverflow.com/questions/79066249/if-a-c-function-returns-some-heavy-object-by-value-should-i-capture-it-by-cons)Stackexchange community
I wish you all a wonderful day! Stay safe :)
If anything is off, please write me at peter D.O.T schneider A.T ois42.de
c++20 c++