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