Skip to content

Glossary: Data Structures and Algorithms in C++

const

Also written: const method, const reference

A keyword marking something that can't change. A const method doesn't modify the object, and a stored hash map key is const so its bucket never changes.

Where the book teaches it

Related terms

Immutable