Suppose I have a function that takes an argument of type T
.
It does not mutate it, so I have the choice of passing it by const reference const T&
If you're going to use a "rule of thumb" for by-value vs. by-const-reference, then do this: