3 ms·
You want to use 'T const&' as your argument type, not 'T', otherwise foo() will take a copy of anything you pass.
by nly 12y ago
You want to use 'T const&' as your argument type, not 'T', otherwise foo() will take a copy of anything you pass.
3 ms·