Esri Interview Question: why unordered map can not use... | Glassdoor

Interview Question

Software Development Engineer Interview Redlands, CA

why unordered map can not use pair of int as keys?

Answer

Interview Answer

1 Answer

0

Unordered maps are implemented via hash tables, and a std::pair does not have a hash function. Source: http://stackoverflow.com/questions/30419681/why-cant-i-use-pair-as-key-of-unordered-set-unordered-map

Ben on Aug 15, 2016

Add Answers or Comments

To comment on this, Sign In or Sign Up.