S
Salman
How can I use Haspmap in C++ and what will be benefit of hashmap over
arrays?
arrays?
Salman said:How can I use Haspmap in C++ and what will be benefit of hashmap over
arrays?
A hash map is what's known as an associative container. It has some
specific properties that allow quick insertion and retrieval of any
element. In arrays elements are indexed, in hash maps elements are
"hashed".
If you can find an implementation of a hash map, use it. Usually
you include the header and define your container, just like you would
a 'vector' or 'list'.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.