aboutsummaryrefslogtreecommitdiff
path: root/backend/PtrList.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/PtrList.hpp')
-rw-r--r--backend/PtrList.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/backend/PtrList.hpp b/backend/PtrList.hpp
new file mode 100644
index 0000000..96f2643
--- /dev/null
+++ b/backend/PtrList.hpp
@@ -0,0 +1,10 @@
+#pragma once
+
+#include "PtrList.h"
+
+template <typename T>
+PtrList<T>::~PtrList() {
+ for (T * obj : *this)
+ delete obj;
+}
+