BinaryHeap<TElement>.UpdateKey Method |
Name | Description | |
---|---|---|
![]() | UpdateKey<TKeyType>(TElement, Action<TElement, TKeyType>, TKeyType) |
Updates the key of the element passed in. Only use this method for elements where the key is a property of the element, not the element itself.
This means that if you have a heap with value typed elements (e.g. integers), updating the key is updating the value of the element itself, and because
a heap might contain elements with the same value, this could lead to undefined results.
(Overrides HeapBase<TElement>.UpdateKey<TKeyType>(TElement, Action<TElement, TKeyType>, TKeyType).) |
![]() | UpdateKey<TKeyType>(TElement, Action<TElement, TKeyType>, TKeyType) |
Updates the key of the element passed in. Only use this method for elements where the key is a property of the element, not the element itself.
This means that if you have a heap with value typed elements (e.g. integers), updating the key is updating the value of the element itself, and because
a heap might contain elements with the same value, this could lead to undefined results.
(Inherited from HeapBase<TElement>.) |