System::Array::Sort method
Contents
[
Hide
]Array::Sort(const ArrayPtr<TKey>&, const ArrayPtr<TValue>&) method
Sorts two arrays one containing keys and the other - corresponding items, based on the values of array containing keys, elements of which are compared using operator<.
template<typename TKey,typename TValue> static void System::Array<T>::Sort(const ArrayPtr<TKey> &keys, const ArrayPtr<TValue> &items)
Parameter | Description |
---|---|
TKey | The type of the elements in the keys array |
TValue | the type of the elements in the items array |
Parameter | Type | Description |
---|---|---|
keys | const ArrayPtr<TKey>& | Array that contains key values |
items | const ArrayPtr<TValue>& | Array that contains items that are mapped to the key values in keys array |
See Also
- Typedef ArrayPtr
- Class Array
- Namespace System
- Library Aspose.Page for C++
Array::Sort(const ArrayPtr<TKey>&, const ArrayPtr<TValue>&, int, int) method
Sorts two arrays one containing keys and the other - corresponding items, based on the values of array containing keys, elements of which are compared using default comparer.
template<typename TKey,typename TValue> static void System::Array<T>::Sort(const ArrayPtr<TKey> &keys, const ArrayPtr<TValue> &items, int index, int length)
Parameter | Description |
---|---|
TKey | The type of the elements in the keys array |
TValue | the type of the elements in the items array |
Parameter | Type | Description |
---|---|---|
keys | const ArrayPtr<TKey>& | Array that contains key values |
items | const ArrayPtr<TValue>& | Array that contains items that are mapped to the key values in keys array |
index | int | The index designating the beginning of the range to sort |
length | int | The number of elements in the range to sort |
See Also
- Typedef ArrayPtr
- Class Array
- Namespace System
- Library Aspose.Page for C++
Array::Sort(const ArrayPtr<Type>&) method
Sorts elements in the specified array using default comparer.
template<typename Type> static void System::Array<T>::Sort(const ArrayPtr<Type> &arr)
Parameter | Type | Description |
---|---|---|
arr | const ArrayPtr<Type>& | Targed array |
See Also
- Typedef ArrayPtr
- Class Array
- Namespace System
- Library Aspose.Page for C++
Array::Sort(const ArrayPtr<Type>&, const SharedPtr<System::Collections::Generic::IComparer<T>>&) method
Sorts elements in the specified array using specified comparer.
template<typename Type> static void System::Array<T>::Sort(const ArrayPtr<Type> &arr, const SharedPtr<System::Collections::Generic::IComparer<T>> &comparator)
Parameter | Type | Description |
---|---|---|
arr | const ArrayPtr<Type>& | Targed array |
comparator | const SharedPtr<System::Collections::Generic::IComparer<T>>& | IComparer |
See Also
- Typedef ArrayPtr
- Typedef SharedPtr
- Class IComparer
- Class Array
- Namespace System
- Library Aspose.Page for C++
Array::Sort(const ArrayPtr<Type>&, const SharedPtr<System::Collections::Generic::IComparer<Y>>&) method
NOT IMPLEMENTED.
template<typename Type,typename Y> static void System::Array<T>::Sort(const ArrayPtr<Type> &arr, const SharedPtr<System::Collections::Generic::IComparer<Y>> &comparator)
See Also
- Typedef ArrayPtr
- Typedef SharedPtr
- Class IComparer
- Class Array
- Namespace System
- Library Aspose.Page for C++
Array::Sort(const ArrayPtr<Type>&, int, int) method
Sorts a range of elements in the specified array using default comparer.
template<typename Type> static void System::Array<T>::Sort(const ArrayPtr<Type> &arr, int startIndex, int count)
Parameter | Type | Description |
---|---|---|
arr | const ArrayPtr<Type>& | Targed array |
startIndex | int | The index designating the beginning of the range of elements to sort |
count | int | The size of the range of elements to sort |
See Also
- Typedef ArrayPtr
- Class Array
- Namespace System
- Library Aspose.Page for C++