System::Collections::Generic::SortedSet 类
SortedSet class
前向声明 SortedSet 类。
template<typename T>class SortedSet : public System::Collections::Generic::BaseSet<T, std::set<T, ComparerAdapter<T>, System::Details::CollectionHelpers::ContainerPointerMode<T>::allocator_type>>
方法
| 方法 | 描述 |
|---|---|
| get_Max() const | 获取 SortedSet 中的最大值。 |
| SortedSet() | RTTI 信息。 |
| SortedSet(int) | 创建具有指定容量的空集合。 |
| SortedSet(const SharedPtr<IComparer<T>>&) | 创建使用指定相等比较器的空集合。 |
| SortedSet(const SharedPtr<IEnumerable<T>>&) | 基于可枚举值创建 SortedSet。 |
Typedefs
| 类型定义 | 描述 |
|---|---|
| BaseType | 花瓶类型。 |
| ThisPtr | 指针类型。 |
| ThisType | 自身类型。 |
备注
实现一组有序对象。此类的对象只能使用 System::MakeObject() 函数分配。切勿在栈上或使用 new 运算符创建此类型的实例,因为这会导致运行时错误和/或断言故障。始终将此类包装在 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。
另见
- Class BaseSet
- Namespace System::Collections::Generic
- Library Aspose.Page for C++