aboutsummaryrefslogtreecommitdiff
path: root/backend/List.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/List.hpp')
-rw-r--r--backend/List.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/List.hpp b/backend/List.hpp
index c2c5ce2..f4dce23 100644
--- a/backend/List.hpp
+++ b/backend/List.hpp
@@ -85,3 +85,8 @@ ListIterator<T> List<T>::end() const {
return this->range().end();
}
+template <typename T>
+List<T>::~List() {
+ this->clear();
+}
+