| Lecture 2 - Slide 15 : 29 |
Here we show a number of examples that illustrate various aspects of references
"The absence of const in a declaration of a reference (argument) is taken as a statement of intent to modify the variable"
No operator operates on a reference as such. |
A typical use of references: A number of results passed back from vector_min_max via references. |
Ditto - handling the problem by making the local variable static. |
A function with reference parameters and reference return type. |
Pointers in combination with references |