25 static const int INSERTION_SORT_THRESHOLD = 7;
32 #define MAKE_SORTLISTTYPE_DEF(C, T) \ 33 typedef DynaAllocVect<C> T##AllocVect; \ 34 typedef DynaSortList<C> T##SortList 40 #define MAKE_SORTARRAYTYPE_DEF(C, T) \ 41 typedef DynaAllocArray<C> T##AllocArray; \ 42 typedef DynaSortArray<C> T##SortArray 47 static void _swap( T** x,
int a,
int b );
77 static void _swap( T* x,
int a,
int b );
static void mergeSort(T **array, int length, int low, int high, IDynaComparator< T *> &comparator)
Sort an array of objects, typically those allocated with "new".
Definition: DynaSortImpl.h:68
Definition: IDynaComparator.h:19
Definition: DynaSort.h:74
static void _swap(T **x, int a, int b)
Definition: DynaSortImpl.h:35
Definition: DynaList.h:38
Definition: DynaArray.h:28
static void _mergeSort(T **src, T **dest, int low, int high, IDynaComparator< T *> &comparator)
Definition: DynaSortImpl.h:41
Definition: DynaSort.h:44