sam wrote:
HI,
I want to know what the key is in a hash_map object.
eg.
myhash["key_name"] = "value";
How can I extract the "key_name" from myhash?
Thanks
Sam
I suppose hash_map to behave like map template.
With map objects, when you access objects contained through an iterator
it returns a template object of type Pair.
Pair contains two elements, called first and second.
first is the key, and second is the data associated with that key.