/// <summary>
 /// Insert the key and value.
 /// </summary>
 /// <exception cref="ArgumentNullException"></exception>
 /// <exception cref="ArgumentException"></exception>
 public void Add(TKey key, TValue val)
 {
     heap.Add(key, val);
 }
示例#2
0
 /// <summary>
 /// Insert the value.
 /// </summary>
 /// <exception cref="ArgumentNullException"></exception>
 /// <exception cref="ArgumentException"></exception>
 public void Add(T item) => minHeap.Add(item);