7 ms·
Sometimes pass by value is what you need, for example passing a shared pointer to get the increment on use count. Also I believe passing types smaller than or
by iExploder 3y ago
Sometimes pass by value is what you need, for example passing a shared pointer to get the increment on use count.
Also I believe passing types smaller than or equal to pointer size by reference is redundant.