Skip to content

Glossary: Algorithms Beyond the Basics in C++

hash (std::hash)

Also written: std::hash, hash map

The function that lets a key be stored in an `unordered_map`. Numbers and strings have one, but pairs and vectors don't, so those keys need `std::map`.

Where the book teaches it

Related terms

std::mapstd::unordered_map