#include <list.h>
Static Public Member Functions | |
static void | Sort (ListItem &list, param_t parameter) |
Invokes the RadixSort algorithm. |
Templated class with a single static function Sort(), used for sorting lists of any type of object, using the RadixSort algorithm. This is useful for sorting objects for which an integer sort value can be assigned to each. Note the restrictions below. This algorithm exhibits O(N) performance for sorting a list of N objects, guaranteed in all cases. It is usually preferable to MergeSort in cases where it can be used.
CompFunc | Comparison function container-class. |
static void Sort | ( | ListItem & | list, | |
param_t | parameter | |||
) | [inline, static] |
Invokes the RadixSort algorithm.
list | List of items. | |
parameter | Argument to the comparison function. |