Hashtables

  • 12 years ago

    I have heard a lot of talk about hashtables from time to time.  They are supposed to be very cool ways of storing data where the index you use to look up the data is somehow the data itself.

    But hashtables are not part of the C++ standard template library... I think.  So does anyone have any tips on how to write a hashtable?

  • 12 years ago

    You can use following Associative Containers from STL :

    hash_set (<hash_set>), map (<map>), hash_map, hash_multiset, hash_multimap.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“A computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match” - Bill Bryson