RFC: where to put sorted vector template/class?

Noel Grandin noel at peralex.com
Tue Jul 10 05:53:41 PDT 2012


Hi

In my removals of SV_DECL_PTRARR, I have across a dozen or so places in 
the codebase, where I cannot use anything other than a sorted vector, 
normally with a custom comparison function.

This is because the code(s) in question wants to take the index of the 
items in the array and passes the index around.

Rather than re-implement such a class/template repeatedly, is there a 
common place I could stash such a template, and then include it in the 
places it is necessary?

Regards, Noel Grandin

Disclaimer: http://www.peralex.com/disclaimer.html




More information about the LibreOffice mailing list