Sorted Array Wrapper Range

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Dec 10 12:58:05 PST 2014


On Monday, 8 December 2014 at 15:43:37 UTC, Tobias Pankrath wrote:
> Was my fault. The phobos checkout didn't match my dmd version. 
> Here is my current state (has some more unittest, bugs fixed, 
> no assignment via SortedRange views on Sorted.): 
> https://github.com/Panke/phobos/blob/sorted/std/container/sorted.d

Further it's nicer to use new enum syntax at

https://github.com/Panke/phobos/blob/sorted/std/container/sorted.d#L12

as

enum isRAContainer(T) = isRandomAccessRange!(typeof(T.init[])) ...


More information about the Digitalmars-d-learn mailing list