#pragma once #include "PtrList.h" #include "ListIterator.h" template PtrList::~PtrList() { for (T * & obj : *this) delete obj; }