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