System::Collections::Generic::List::Sort method
内容
[
隐藏
]List::Sort() method
使用默认比较器对列表中的元素进行排序。
void System::Collections::Generic::List<T>::Sort()
另见
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Font for C++
List::Sort(Comparison<T>, bool) method
对列表中的元素进行排序。
void System::Collections::Generic::List<T>::Sort(Comparison<T> comparison, bool)
| 参数 | 类型 | 描述 |
|---|---|---|
| comparison | Comparison<T> | 要使用的 Comparison。 |
另见
- Class Comparison
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Font for C++
List::Sort(const SharedPtr<System::Collections::Generic::IComparer<T>>&) method
对列表中的元素进行排序。
void System::Collections::Generic::List<T>::Sort(const SharedPtr<System::Collections::Generic::IComparer<T>> &comparator)
| 参数 | 类型 | 描述 |
|---|---|---|
| 比较器 | const SharedPtr<System::Collections::Generic::IComparer<T>>& | 要使用的比较器。 |
另见
- Typedef SharedPtr
- Class IComparer
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Font for C++
List::Sort(int, int, SharedPtr<System::Collections::Generic::IComparer<T>>) method
对列表切片中的元素进行排序。
void System::Collections::Generic::List<T>::Sort(int index, int count, SharedPtr<System::Collections::Generic::IComparer<T>> comparator)
| 参数 | 类型 | 描述 |
|---|---|---|
| 索引 | int | 切片起始索引。 |
| count | int | 切片大小。 |
| 比较器 | SharedPtr<System::Collections::Generic::IComparer<T>> | 要使用的比较器。 |
另见
- Typedef SharedPtr
- Class IComparer
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Font for C++