@@ -78,6 +78,7 @@ public:
delete element;
element = next;
}
+ head_ = nullptr;
/// Insert an element at the beginning.