Getting range of const rbtree

drug via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Feb 26 02:49:12 PST 2015


I can't get the range of const RedBlackTree because opSlice is mutable:
http://dpaste.dzfl.pl/02fadc472eea
What is the best way to iterate over const collection of elements?

Thanks


More information about the Digitalmars-d-learn mailing list