Lecture 2 - Slide 16 : 29 |
A constant reference is really a reference to a constant
The use of const in a declaration of a reference (argument) means that we do not want to change the referenced object
"An initializer for const T& does not need to be an lvalue, or even of type T"
const T &var = expression;