J
John
I would like to sort a vector using a comparison function of
my own, the problem is that the comparison function is dependent
on the first element of the vector. I do not want to make this
element global. Ideally I would like to send the compare function
three elements instead of two?
Any other ways to cleanly do this?
Thanks a lot,
--j
my own, the problem is that the comparison function is dependent
on the first element of the vector. I do not want to make this
element global. Ideally I would like to send the compare function
three elements instead of two?
Any other ways to cleanly do this?
Thanks a lot,
--j