Skip to content

Glossary: Algorithms Beyond the Basics in C++

const reference (const T&)

Also written: pass by reference, reference

A way to pass a value to a function without copying it. A plain `&` lets the function change the caller's variable, while `const` forbids changes.

Where the book teaches it