How do I pass a const reference?
How do I pass a const reference? When you pass by const reference, you take the argument in by reference (avoiding making any copies of it), but cannot make any changes to the original object (much as would happen when you would take the parameters in by value). How do Read more…