Improvements

This commit is contained in:
xlaussel
2020-11-23 23:00:27 +01:00
parent 13067844ee
commit 41af9615cd
7 changed files with 50 additions and 56 deletions
+2 -2
View File
@@ -294,7 +294,7 @@ class QueryHeap
return inserted_nodes[index].node == node;
}
boost::optional<HeapNode&> WasInsertedGetHeapNode(const NodeID node)
boost::optional<HeapNode&> GetHeapNodeIfWasInserted(const NodeID node)
{
const auto index = node_index.peek_index(node);
if (index >= static_cast<decltype(index)>(inserted_nodes.size()))
@@ -304,7 +304,7 @@ class QueryHeap
return inserted_nodes[index];
}
const boost::optional<const HeapNode&> WasInsertedGetHeapNode(const NodeID node) const
const boost::optional<const HeapNode&> GetHeapNodeIfWasInserted(const NodeID node) const
{
const auto index = node_index.peek_index(node);
if (index >= static_cast<decltype(index)>(inserted_nodes.size()))