--- trunk/src/utils/MemoryUtils.hpp 2005/01/12 22:41:40 246 +++ trunk/src/utils/MemoryUtils.hpp 2005/04/15 22:04:00 507 @@ -1,4 +1,4 @@ - /* +/* * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. * * The University of Notre Dame grants you ("Licensee") a @@ -48,20 +48,20 @@ #ifndef UTILS_MEMORYUTILS_HPP #define UTILS_MEMORYUTILS_HPP -#include + namespace oopse { - class MemoryUtils{ - public: + class MemoryUtils{ + public: - template - static void deleteVectorOfPointer(std::vector& container){ - for (typename std::vector::iterator i = container.begin(); i != container.end(); i++) { - delete *i; - } + template + static void deletePointers(ContainterType& container) { + for (typename ContainterType::iterator i = container.begin(); i != container.end(); i++) { + delete *i; + } - container.clear(); - } - }; + container.clear(); + } + }; } #endif //UTILS_MEMORYUTILS_HPP