HeapSort()
System::MemoryExtensions::Details::HeapSort(Span<TKey>&, Span<TValue>&, std::function<int32_t(const TKey&, const TKey&)>) function
Performs heap sort on key-value pairs.
template<typename TKey,typename TValue> void System::MemoryExtensions::Details::HeapSort(Span<TKey> &keys, Span<TValue> &values, std::function<int32_t(const TKey &, const TKey &)> comparer)
Template parameters
| Parameter | Description |
|---|
| TKey | The type of keys |
| TValue | The type of values |
Arguments
| Parameter | Type | Description |
|---|
| keys | Span<TKey>& | The span of keys to sort |
| values | Span<TValue>& | The span of values to sort |
| comparer | std::function<int32_t(const TKey&, const TKey&)> | Comparison function for keys |
See Also