Creating a RedBlackTree

Bogdan olar.bogdan.dev at gmail.com
Wed May 15 13:45:03 UTC 2019


On Wednesday, 15 May 2019 at 13:19:36 UTC, drug wrote:
> You can use predicate for this purpose:
> ```
> auto rbt = redBlackTree!((a, b) => a.ID < b.ID, KeyController);
> ```
>
> https://run.dlang.io/is/CNRTQf

Even better, thank you!


More information about the Digitalmars-d-learn mailing list