
10 Aug
2009
10 Aug
'09
3:27 p.m.
AMDG ch.asad@gmail.com wrote:
Hi I am using boost collection class.
I did sorting e.g apply a quick/bubble sort algo , but i want to do sorting using multiple criteria. how we can implement using boost. Do boost have any classes or functions through which I can easily sort the data using multiple options?
What do you mean by multiple options? If you want to sort by f first and then by g, use this formula to get a compound predicate: h(x,y) = f(x,y) || (!f(y,x) && g(x,y)) In Christ, Steven Watanabe