Glossary: Data Structures and Algorithms in C++
Functor
Also written: hash functor
A struct or class that defines `operator()` so its objects can be called like functions. It is used to supply custom behavior, such as the hash function that lets a struct like `CityProduct` be a key in a `std::unordered_map` (e.g. `CityProductHash`).