Needed: int wxTreeItemId::GetHash()
Carsten A. Arnholm
arnholm at offline.no
Mon Aug 20 04:58:25 PDT 2007
Ole Nielsby wrote:
> I need to create unique wrappers for wxTreeItemId items - i.e. if the
> same id comes up twice, my wrapper factory will return the same
> object.
> I can compare them with the == operator but I need a way to hash them.
>
> Is there a way to do this?
How about std::map<wxTreeItemId,wrapperObject*> ?
The map would take care of the hashing for you.
--
Carsten A. Arnholm
http://arnholm.org/
N59.776 E10.457
More information about the wx-users
mailing list