NodeAllocator has default constructor
capacity at 0 by default, because it screws with usage of size later.
This commit is contained in:
@@ -52,7 +52,7 @@ struct NodeAllocator
|
|||||||
{
|
{
|
||||||
std::vector<Node> vec;
|
std::vector<Node> vec;
|
||||||
|
|
||||||
NodeAllocator(word_t capacity);
|
NodeAllocator(word_t capacity = 0);
|
||||||
word_t alloc(Node n);
|
word_t alloc(Node n);
|
||||||
Node getVal(word_t n) const;
|
Node getVal(word_t n) const;
|
||||||
Node &getRef(word_t n);
|
Node &getRef(word_t n);
|
||||||
|
|||||||
Reference in New Issue
Block a user