Question on hash_map in stl
Posted on 2003-10-27
I want to use a hash_map to store some data. the key is going to be a const char* and the object is going to be a custom struct. I have no idea how to go about implementing this and I can't find anything online. I need to be pointed to a tutorial on using hash_maps. the one on sgis website doesn't help enough.
I am trying to call the following:
bool operator()(const char* s1, const char* s2) const
return strcmp(s1, s2) == 0;
hash_map<const char*, notes, hash<const char*>, eqstr> toolNotes;
and getting an error that hash is undefined.