   Own Key type for std::map
  Hi!I was trying to create my own Key type, which stores additional information.struct OwnKey {   std::String strKey;   void*  addData;};I want to use it like this:std::map<OwnKey key, T* value> m_map;I figured out I have to write my own compare class to be able to compare them:struct classcomp {  bool operator() (const OwnKey& lhs, const OwnKey& rhs) const  {return lhs.strName.compare(rhs.strName) < 0;}};Now the problem is, I can't use the map member find("string") to access the map. (yes, I want to access the map using only the string, but be able to access the void* as well).So I guess I might have a flaw in my thinking...Is there a way to do this kind of stuff?You might ask yourself why I don't put the necessary information in the value T* object. But thats the problem, I'd need to subclass a lot of classes if I wanted to do that, so I thought maybe there is a way to store the other information in the key type.Do you have an idea how I could solve this problem? (with the use of the map container?)Thx,Zerd   
  So why not do something like std::map<std::string, std::pair<void *, T *> >?   ;  Thats a bloody good question...I guess that was a too obvious solution... -.-Thx, thats just what I needed...   