22 #ifndef __XN_ALGORITHMS_H__ 23 #define __XN_ALGORITHMS_H__ 42 template<
class T,
class Comparer>
43 static void BubbleSort(T elements[], XnUInt32 nCount, Comparer comp)
55 for (XnUInt32 i = 0; i < n - 1; ++i)
57 if (!comp(elements[i], elements[i+1]))
61 elements[i] = elements[i+1];
81 #endif // __XN_ALGORITHMS_H__
XnBool DefaultComparer(const T &arg1, const T &arg2)
Definition: XnAlgorithms.h:34
static void BubbleSort(T elements[], XnUInt32 nCount, Comparer comp)
Definition: XnAlgorithms.h:43
Definition: XnAlgorithms.h:39
static void BubbleSort(T elements[], XnUInt32 nCount)
Definition: XnAlgorithms.h:74