Reputation: 314
This produces compiler error
unordered_map<pair<int,int>,int> umap;
I understand that a hash function must be provided for it to work.
But
map<pair<int,int>,int> omap;
works perfectly without any hash function.
Why is that so?
Upvotes: 1
Views: 633