Darin Fisher wrote:
What is the best way to represent a hash set using nsTHashtable?
Everything extending from nsBaseHashtable seems to expect that hash
table entries have both a key and a value. A set on the other hand,
is just a table of keys. Should I try to define a value of zero size?
That seems hacky. Should I define my own EntryType for use with
nsTHashtable? That seems like a lot of typing. nsHashSets.h has the
solution I'm looking for, but it says that it is deprecated :-/ Am I
just overlooking some existing nsTHashtable way of expressing sets?
nsTHashtable<nsSomeHashKey>
--BDS
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom