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++
C++ Perfect forwarding.

Perfect forwarding comes from std::forward() is one of the special C++ technique to reduce the code length. More information can be found on cpprefere… ...more

August 28, 2024 #C++