예제 #1
0
 public static void MergeSort <T, TOrder>(this SortableSpan <T, TOrder> sortableSpan)
     where TOrder : struct, IOrdering <T>
 => OrderingsFor <T> .WithOrder <TOrder> .TopDownMergeSort(sortableSpan.Order, sortableSpan.Block);
예제 #2
0
 public static void ParallelQuickSort <T, TOrder>(this SortableSpan <T, TOrder> sortableSpan)
     where TOrder : struct, IOrdering <T>
 => OrderingsFor <T> .WithOrder <TOrder> .ParallelQuickSort(sortableSpan.Order, sortableSpan.Block);