What's the deal with SortedRange

Steven Schveighoffer schveiguy at gmail.com
Sun Apr 19 21:06:41 UTC 2020


On 4/19/20 3:54 PM, Steven Schveighoffer wrote:

> i.e. instead of if(auto ptr = elem in sortedRange) { /* use ptr */ }
> you have to do:
> 
> auto eqr = sortedRange.equalRange(elem);
> if(!eqr.empty) { /* use eqr.front */ }

Another bug I just found. The above doesn't even work for my case.

https://issues.dlang.org/show_bug.cgi?id=20751

-Steve


More information about the Digitalmars-d mailing list