Why is std::hash a struct?

If you look at the C++ standard, you will notice that std::hash is defined as a struct (specifically, a class template) rather than a simple function.… ...more

August 28, 2024 #C++