1

implement list destructor

This commit is contained in:
2022-07-19 14:47:49 +02:00
parent 304458a816
commit 18c43ae37d
2 changed files with 24 additions and 11 deletions

View File

@ -9,6 +9,8 @@
template<typename T, typename I = Iterator<T>>
class List {
public:
virtual ~List() = 0;
using Type = T; // We make the template argument accessible from the subclasses
using Iterator = I; // Needed for range based for loop