Use custom struct instead of std::pair in QueryHeap
This commit is contained in:
parent
4ae5213d9d
commit
608f6ca383
@ -370,7 +370,7 @@ class QueryHeap
|
|||||||
const auto index = node_index.peek_index(node);
|
const auto index = node_index.peek_index(node);
|
||||||
auto &reference = inserted_nodes[index];
|
auto &reference = inserted_nodes[index];
|
||||||
reference.weight = weight;
|
reference.weight = weight;
|
||||||
heap.increase(reference.handle, HeapData{weight, index});
|
heap.increase(reference.handle, HeapData{weight, static_cast<Key>(index)});
|
||||||
}
|
}
|
||||||
|
|
||||||
void DecreaseKey(const HeapNode &heapNode)
|
void DecreaseKey(const HeapNode &heapNode)
|
||||||
|
Loading…
Reference in New Issue
Block a user