Метод System::Array::Sort
Содержание
[
Скрывать
]Array::Sort(const ArrayPtr<TKey>&, const ArrayPtr<TValue>&) method
Сортирует два массива: один, содержащий ключи, а другой — соответствующие элементы, основываясь на значениях массива, содержащего ключи, элементы которого сравниваются с помощью operator<.
template<typename TKey,typename TValue> static void System::Array<T>::Sort(const ArrayPtr<TKey> &keys, const ArrayPtr<TValue> &items)
| Параметр | Описание |
|---|---|
| TKey | Тип элементов в массиве keys |
| TValue | тип элементов в массиве items |
| Параметр | Тип | Описание |
|---|---|---|
| keys | const ArrayPtr<TKey>& | Array содержащий значения ключей |
| items | const ArrayPtr<TValue>& | Array содержащий элементы, сопоставленные со значениями ключей в массиве keys |
См. также
- Typedef ArrayPtr
- Class Array
- Namespace System
- Library Aspose.Font for C++
Array::Sort(const ArrayPtr<TKey>&, const ArrayPtr<TValue>&, int, int) method
Сортирует два массива: один, содержащий ключи, а другой — соответствующие элементы, основываясь на значениях массива, содержащего ключи, элементы которого сравниваются с помощью сравнивателя по умолчанию.
template<typename TKey,typename TValue> static void System::Array<T>::Sort(const ArrayPtr<TKey> &keys, const ArrayPtr<TValue> &items, int index, int length)
| Параметр | Описание |
|---|---|
| TKey | Тип элементов в массиве keys |
| TValue | тип элементов в массиве items |
| Параметр | Тип | Описание |
|---|---|---|
| keys | const ArrayPtr<TKey>& | Array содержащий значения ключей |
| items | const ArrayPtr<TValue>& | Array содержащий элементы, сопоставленные со значениями ключей в массиве keys |
| индекс | int | Индекс, указывающий начало диапазона для сортировки |
| длина | int | Количество элементов в диапазоне для сортировки |
См. также
- Typedef ArrayPtr
- Class Array
- Namespace System
- Library Aspose.Font for C++
Array::Sort(const ArrayPtr<Type>&) method
Сортирует элементы в указанном массиве, используя сравниватель по умолчанию.
template<typename Type> static void System::Array<T>::Sort(const ArrayPtr<Type> &arr)
| Параметр | Тип | Описание |
|---|---|---|
| arr | const ArrayPtr<Type>& | Целевой массив |
См. также
- Typedef ArrayPtr
- Class Array
- Namespace System
- Library Aspose.Font for C++
Array::Sort(const ArrayPtr<Type>&, const SharedPtr<System::Collections::Generic::IComparer<T>>&) method
Сортирует элементы в указанном массиве, используя указанный сравниватель.
template<typename Type> static void System::Array<T>::Sort(const ArrayPtr<Type> &arr, const SharedPtr<System::Collections::Generic::IComparer<T>> &comparator)
| Параметр | Тип | Описание |
|---|---|---|
| arr | const ArrayPtr<Type>& | Целевой массив |
| компаратор | const SharedPtr<System::Collections::Generic::IComparer<T>>& | Объект IComparer |
См. также
- Typedef ArrayPtr
- Typedef SharedPtr
- Class IComparer
- Class Array
- Namespace System
- Library Aspose.Font for C++
Array::Sort(const ArrayPtr<Type>&, const SharedPtr<System::Collections::Generic::IComparer<Y>>&) method
НЕ РЕАЛИЗОВАНО.
template<typename Type,typename Y> static void System::Array<T>::Sort(const ArrayPtr<Type> &arr, const SharedPtr<System::Collections::Generic::IComparer<Y>> &comparator)
См. также
- Typedef ArrayPtr
- Typedef SharedPtr
- Class IComparer
- Class Array
- Namespace System
- Library Aspose.Font for C++
Array::Sort(const ArrayPtr<Type>&, int, int) method
Сортирует диапазон элементов в указанном массиве, используя сравниватель по умолчанию.
template<typename Type> static void System::Array<T>::Sort(const ArrayPtr<Type> &arr, int startIndex, int count)
| Параметр | Тип | Описание |
|---|---|---|
| arr | const ArrayPtr<Type>& | Целевой массив |
| startIndex | int | Индекс, обозначающий начало диапазона элементов для сортировки |
| count | int | Размер диапазона элементов для сортировки |
См. также
- Typedef ArrayPtr
- Class Array
- Namespace System
- Library Aspose.Font for C++