Commit e580bc57 authored by BRAMAS Berenger's avatar BRAMAS Berenger

Add an empty constructor for nodes of list

parent 2a5ac62e
......@@ -122,6 +122,18 @@ public:
++this->size;
}
/**
* @brief pushEmpty
* use default constructor
*/
void pushEmpty(){
Node* newNode = new Node;
newNode->next = this->root;
this->root = newNode;
++this->size;
}
/**
* To get head value (last pushed value)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment