4 ms·
I agree with your point for small size data structures. But in general, and in the case of the OP source code, he doesn't even need to copy its arguments to pa
by random9e7de4c1 5y ago
I agree with your point for small size data structures. But in general, and in the case of the OP source code, he doesn't even need to copy its arguments to pass them by value, he should pass them via a const reference, and just pass the address.