Equivilent of STL Set in D ? ...
KlausO
oberhofer at users.sf.net
Mon Oct 23 07:17:59 PDT 2006
clayasaurus wrote:
> Yes, thank you! I'll give it a try when I get the chance. I really
> didn't want an intrusive tree. Looks like you have an interesting
> interface too, although why not have an interface like...
>
> RedBlackTree!(int) tree;
>
> tree.add(4);
> tree.add(3);
> tree.add(7);
>
> tree.remove(7);
>
> int b = tree.find(7);
>
> ? Just wondering how you came up with the interface :)
>
> ~ Clay
Walter suggested it in a previous post. I think he wanted the same
interface as AAs have.
More information about the Digitalmars-d-learn
mailing list