class · System
SortedSet<T>
public class System.SortedSet<T> : System.Any
A set kept in order: Add, Contains, Remove, Min, Max, and loop (T item in set) from the smallest.
- Kind
- class
- Namespace
- System
- Assembly
- System.Core
- Access
- public
- Source file
Sorted.ant
Type parameters
| Name | Constraints |
|---|---|
T | System.IComparable<T> |
Inheritance
- Base classes
-
AnySortedSet<T>
Constructors
constructor SortedSet()
#
Properties
property Min: T
#
The smallest and largest items (an InvalidOperationError when the set is empty).
property Max: T
#
Methods
Adds item; false when it was there already.
method Clear() -> void
#
method Iterator() -> System.SortedSetIterator<T>
#
Private and internal members (1)
field tree: System.SortedDictionary<T, bool>
#
Inherited members (5)
GetTypemethod from AnyUndescribedmethod from AnyToStringmethod from AnyHashmethod from Anydestroymethod from Any
Source
SortedSet<T> as Larva HIR, decompiled from its Larva HIR.
// A set kept in order: Add, Contains, Remove, Min, Max, and `loop (T item in set)` from the smallest.
public class System.SortedSet<T> : System.Any
{
field tree: System.SortedDictionary<T, bool>
constructor SortedSet()
// Adds `item`; false when it was there already.
method Add(item: T) -> bool
method Contains(item: T) -> bool
method Remove(item: T) -> bool
method Clear() -> void
method Iterator() -> System.SortedSetIterator<T>
property Count: i32
property IsEmpty: bool
// The smallest and largest items (an InvalidOperationError when the set is empty).
property Min: T
property Max: T
}