opCmp with structs
    Alex via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Sat Nov  7 12:33:22 PST 2015
    
    
  
Ok... found the solution. The technical at least.
import std.algorithm;
import std.range;
void main(){
	ku[] tt = [ku(2), ku(1)];
	//writeln(tt);
	auto index3 = new size_t[tt.length];
	makeIndex!("a.id < b.id")(tt, index3);
	auto ind = indexed(tt, index3);
	//writeln(ind);
}
This yield in 'ind' the array of 'tt', ordered in the expected 
way.
So, the remaining open questions are just ideologic now...
Thanks for helping and commenting!
    
    
More information about the Digitalmars-d-learn
mailing list