NodeAllocator has default constructor

capacity at 0 by default, because it screws with usage of size later.
This commit is contained in:
2024-07-26 21:25:40 +01:00
parent 0eaa851114
commit 7720544e07

View File

@@ -52,7 +52,7 @@ struct NodeAllocator
{
std::vector<Node> vec;
NodeAllocator(word_t capacity);
NodeAllocator(word_t capacity = 0);
word_t alloc(Node n);
Node getVal(word_t n) const;
Node &getRef(word_t n);