Hashing
Use pair as the key of hashmap/hashset
1) Define the hash function for pair:
This works, because pair defines equality. For custom classes that do not provide a way to test equality you may need to provide a separate function to test if two instances are equal to each other.
2) Use boost library:
Last updated