Example #1
0
 public BinaryHeap_Array(int capacity)
 {
     _inner = new T[capacity].NewSeg(0, capacity);
 }
Example #2
0
 public BinaryHeap_Array(params T[] items)
 {
     _inner = items.Segment(0, items.Length);
     BHX.MinHeapify <T>(_inner._inner, _inner._count, _inner._offset);
 }
Example #3
0
 //----------------------------------------------------------------------------------
 #region Ctor
 internal protected BinaryHeap_Array()
 {
     _inner = default(ArraySeg <T>);
 }