using a binary tree container

Dominic Jones dominic.jones at qmul.ac.uk
Fri Feb 11 04:30:30 PST 2011


== Quote from bearophile (bearophileHUGS at lycos.com)'s article
> Dominic Jones:
> > I have a list of strings and I want to determine whether or not a particular
> > string in the is in that list.
> What about using:
> size_t[sting] yourStringSet;
> Bye,
> bearophile

Would that not be constructing an associated array? Whilst an associated array
would do the job, there is no value for the "key:value" pair, just a list of keys.
In the C++ STL there are the "set" and "map" containers. I want something like "set".
Dominic


More information about the Digitalmars-d-learn mailing list