Click or drag to resize

CollectionUtilityMergeSortUnmanagedT Method (T, Int32, PointerComparisonT, Boolean)

Merge sort is a efficient sorting method. It divides input array in two halves, calls itself for the two halves and then merges the two sorted halves. Stable sort.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static void MergeSortUnmanaged<T>(
	T* pointer,
	int count,
	PointerComparison<T> comparer,
	bool multithreaded = false
)
where T : struct, new()

Parameters

pointer
Type: T*
count
Type: SystemInt32
comparer
Type: NeoAxisPointerComparisonT
multithreaded (Optional)
Type: SystemBoolean

Type Parameters

T
See Also