How to append to SortedRange?
Uranuz
neuranuz at gmail.com
Sat Feb 15 01:51:55 PST 2014
I have read doc for std.range and std.algorithm, but I have not
found how I could add new value to SortedRange. What I want is to
sort some array of structs by one of it's fields using custom
predicate and save this SortedRange somewhere. But also I need to
be able to append new elements into array and keep it sorted and
using advantages of sorted data structure to for doing it quick.
Is it possible to do it in current implementation of SortedRange.
If not what workarounds would you advise?
More information about the Digitalmars-d-learn
mailing list