I'd recommend a Function Pointer as follows:
void Sort(int Length, Nodes *ToSort(), Node *Decider(Node one,Node Two))
{};
The way this is supposed to work:
ToSort in a pointer to an array of DataType called Node.
NOTE: Please excuse any Syntax errors: It's been a while since the
last time I coded in C.
--- On Mon, 8/10/09, [email protected] <[email protected]> wrote:
From: [email protected] <[email protected]>
Subject: [c-prog] how to Sort boost collection class using multi sorting
options/criteria
To: [email protected]
Date: Monday, August 10, 2009, 5:10 AM
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?
Thanks.
Asad
--
View this message in context: http://www.nabble. com/how-to- Sort-boost-
collection- class-using- multi-sorting- options-criteria -tp24897279p2489
7279.html
Sent from the C-prog mailing list archive at Nabble.com.
[Non-text portions of this message have been removed]