std.container.RedBlackTree versus C++ std::set

Namespace rswhite4 at googlemail.com
Fri Feb 15 01:59:41 PST 2013


> I am starting to understand the difficulty with ref being too 
> restrictive.  Some kind of "const ref" in the language would 
> have helped indeed.  But it would probably cause some 
> allocation difficulties for actual constants... or worse?

Search for 'auto ref' or right after 'rvalue references' and read 
some of the discussions. It's instructive and then you can 
understand the whole topic maybe a little more.
No thread comes to a solution and unfortunately the answer of 
Walter and Andrei are very very thin on the subject.


More information about the Digitalmars-d-learn mailing list