Hash Map

closed account (1RX1wA7f)
Hello everyone,
is there any library available for Hash Map?
without using any other extra libraries?
is it there in STL?
is it there in STL?

Yes. std::map, in <map>.
closed account (1RX1wA7f)
Got it...
Thanx!
std::map is not a hash map. It is an ordered, tree-based map. There is a C++ hash map as part of TR1. It's in <unordered_map> as std::unordered_map or std::tr1::unordered_map depending on your implementation.

That said, std::map is often good enough, though I have run into plenty of situations where it wasn't.

I thought it was unordered, like a Python dictionary. Thank you for the correction.
Topic archived. No new replies allowed.