Metodo System::Array::Sort
Contenuti
[
Nascondere
]Array::Sort(const ArrayPtr<TKey>&, const ArrayPtr<TValue>&) method
Ordina due array, uno contenente le chiavi e l’altro gli elementi corrispondenti, in base ai valori dell’array contenente le chiavi, i cui elementi sono confrontati usando operator<.
template<typename TKey,typename TValue> static void System::Array<T>::Sort(const ArrayPtr<TKey> &keys, const ArrayPtr<TValue> &items)
| Parametro | Descrizione |
|---|---|
| TKey | Il tipo degli elementi nell’array keys |
| TValue | il tipo degli elementi nell’array items |
| Parametro | Tipo | Descrizione |
|---|---|---|
| keys | const ArrayPtr<TKey>& | Array che contiene i valori delle chiavi |
| items | const ArrayPtr<TValue>& | Array che contiene gli elementi mappati ai valori delle chiavi nell’array keys |
Vedi anche
- Typedef ArrayPtr
- Class Array
- Namespace System
- Library Aspose.Font for C++
Array::Sort(const ArrayPtr<TKey>&, const ArrayPtr<TValue>&, int, int) method
Ordina due array, uno contenente le chiavi e l’altro gli elementi corrispondenti, in base ai valori dell’array contenente le chiavi, i cui elementi sono confrontati usando il comparatore predefinito.
template<typename TKey,typename TValue> static void System::Array<T>::Sort(const ArrayPtr<TKey> &keys, const ArrayPtr<TValue> &items, int index, int length)
| Parametro | Descrizione |
|---|---|
| TKey | Il tipo degli elementi nell’array keys |
| TValue | il tipo degli elementi nell’array items |
| Parametro | Tipo | Descrizione |
|---|---|---|
| keys | const ArrayPtr<TKey>& | Array che contiene i valori delle chiavi |
| items | const ArrayPtr<TValue>& | Array che contiene gli elementi mappati ai valori delle chiavi nell’array keys |
| indice | int | L’indice che designa l’inizio dell’intervallo da ordinare |
| lunghezza | int | Il numero di elementi nell’intervallo da ordinare |
Vedi anche
- Typedef ArrayPtr
- Class Array
- Namespace System
- Library Aspose.Font for C++
Array::Sort(const ArrayPtr<Type>&) method
Ordina gli elementi nell’array specificato usando il comparatore predefinito.
template<typename Type> static void System::Array<T>::Sort(const ArrayPtr<Type> &arr)
| Parametro | Tipo | Descrizione |
|---|---|---|
| arr | const ArrayPtr<Type>& | Array di destinazione |
Vedi anche
- Typedef ArrayPtr
- Class Array
- Namespace System
- Library Aspose.Font for C++
Array::Sort(const ArrayPtr<Type>&, const SharedPtr<System::Collections::Generic::IComparer<T>>&) method
Ordina gli elementi nell’array specificato usando il comparatore specificato.
template<typename Type> static void System::Array<T>::Sort(const ArrayPtr<Type> &arr, const SharedPtr<System::Collections::Generic::IComparer<T>> &comparator)
| Parametro | Tipo | Descrizione |
|---|---|---|
| arr | const ArrayPtr<Type>& | Array di destinazione |
| comparatore | const SharedPtr<System::Collections::Generic::IComparer<T>>& | Oggetto IComparer |
Vedi anche
- 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
NON IMPLEMENTATO.
template<typename Type,typename Y> static void System::Array<T>::Sort(const ArrayPtr<Type> &arr, const SharedPtr<System::Collections::Generic::IComparer<Y>> &comparator)
Vedi anche
- Typedef ArrayPtr
- Typedef SharedPtr
- Class IComparer
- Class Array
- Namespace System
- Library Aspose.Font for C++
Array::Sort(const ArrayPtr<Type>&, int, int) method
Ordina un intervallo di elementi nell’array specificato usando il comparatore predefinito.
template<typename Type> static void System::Array<T>::Sort(const ArrayPtr<Type> &arr, int startIndex, int count)
| Parametro | Tipo | Descrizione |
|---|---|---|
| arr | const ArrayPtr<Type>& | Array di destinazione |
| startIndex | int | L’indice che indica l’inizio dell’intervallo di elementi da ordinare |
| count | int | La dimensione dell’intervallo di elementi da ordinare |
Vedi anche
- Typedef ArrayPtr
- Class Array
- Namespace System
- Library Aspose.Font for C++