| 39 | /// Exchange elements according to order |
| 40 | template<class Type, class Less> |
| 41 | forceinline void |
| 42 | exchange(Type &a, Type &b, Less &less) { |
| 43 | if (less(b,a)) std::swap(a,b); |
| 44 | } |
| 45 | |
| 46 | /// Perform quicksort only for more elements |
| 47 | int const QuickSortCutoff = 20; |