ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/utils/MemoryUtils.hpp
(Generate patch)

Comparing trunk/OOPSE-4/src/utils/MemoryUtils.hpp (file contents):
Revision 1930 by gezelter, Wed Jan 12 22:41:40 2005 UTC vs.
Revision 2082 by tim, Mon Mar 7 22:39:33 2005 UTC

# Line 48 | Line 48
48  
49   #ifndef UTILS_MEMORYUTILS_HPP
50   #define UTILS_MEMORYUTILS_HPP
51 #include <vector>
51  
52 +
53   namespace oopse {
54      class MemoryUtils{
55          public:
56  
57 <            template<typename ElemType>
58 <            static void deleteVectorOfPointer(std::vector<ElemType*>& container){
59 <                for (typename std::vector<ElemType*>::iterator i = container.begin(); i != container.end(); i++) {
57 >            template<typename ContainterType>
58 >            static void deletePointers(ContainterType& container) {
59 >                for (typename ContainterType::iterator i = container.begin(); i != container.end(); i++) {
60                      delete *i;
61                  }
62                  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines