Hashtable

M

maroo

Hi all,

Does anyone know if there is a hashtable class or something equivalent in
C++.

Thank you
 
J

Jeff Schwab

maroo said:
Does anyone know if there is a hashtable class or something equivalent in
C++.

The standard library includes a class template ( std::map ) that's
probably what you want.
 
J

John Carson

maroo said:
Hi all,

Does anyone know if there is a hashtable class or something
equivalent in C++.

Thank you

If you mean in the standard library, then officially no. However, many
library providers supply a hash table implementation as an extension to the
standard library. For example, the Dinkumware implementation of the standard
library, which ships with VC++ and has recently been announced for Borland's
C++ builder, has a hash table implementation (several actually).

http://www.dinkumware.com
 
J

Jeff Schwab

Jeff said:
The standard library includes a class template ( std::map ) that's
probably what you want.

FYI, std::map isn't actually implemented as a hash.
 

Ask a Question

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.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top