This video demonstrates how to use a custom class as key in a std::map (map from C++ standard library). It shows how to overload the smaller than operator in a class.
Watch the following video on an introduction to a map:
• C++ Tutorial: The map Class