21 #ifndef __XN_ALGORITHMS_H__
22 #define __XN_ALGORITHMS_H__
41 template<
class T,
class Comparer>
42 static void BubbleSort(T elements[], XnUInt32 nCount, Comparer comp)
54 for (XnUInt32 i = 0; i < n - 1; ++i)
56 if (!comp(elements[i], elements[i+1]))
60 elements[i] = elements[i+1];
73 static void BubbleSort(T elements[], XnUInt32 nCount)
80 #endif // __XN_ALGORITHMS_H__