How to Hash Objects Without Repetition: std::hash can be DRY
In my previous article on std::tie, I discussed how to simplify comparison operators for your classes using the std::tie() function.
Now we’ll explore a more complex case. Let's create a generic implementation of a hashing function for a class or str...
blog.infotraining.pl5 min read