InsertionSort()
System::MemoryExtensions::Details::InsertionSort(Span<TKey>&, Span<TValue>&, std::function<int32_t(const TKey&, const TKey&)>) function
Performs insertion sort on key-value pairs.
template<typename TKey,typename TValue> void System::MemoryExtensions::Details::InsertionSort(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