1 2 3 4 5 6 7 8 9 10
#pragma once #include "PtrList.h" template <typename T> PtrList<T>::~PtrList() { for (T * & obj : *this) delete obj; }