Why is std::hash a struct?

If you check the C++ standard you will find that std::hash is a struct instead of a function. Reference is here. It has the () operator overloaded so … ...more

August 28, 2024 #C++