// ------------------------------------------------------------------- // Public // ------------------------------------------------------------------- public ObjectSetIterator(ObjectSet <T> set) { this.set = set; }
// ------------------------------------------------------------------- // Constructor // ------------------------------------------------------------------- /// <summary> /// Creates a <see cref="PriorityQueue{T}"/> with the specified initial capacity that orders its elements according to their /// <see cref="IComparable"/> /// </summary> /// <param name="initialCapacity"></param> public PriorityQueue(int initialCapacity = DefaultInitialCapacity) { this.queue = new T[initialCapacity]; this.set = new ObjectSet <T>(initialCapacity); }