Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

purgeContainer.h

Go to the documentation of this file.
00001 #ifndef PURGECONTAINER_H
00002 #define PURGECONTAINER_H
00003 
00006 template<class Container> void purgeContainer(Container& container) {
00007    for(typename Container::iterator it = container.begin(), end = container.end(); 
00008             it != end; ++it) {
00009       delete *it;
00010       *it = NULL;
00011    }
00012    container.clear();
00013 }
00014 
00015 
00016 #endif //PURGECONTAINER_H

Thyrix homepageUsers' guide

(C) Arxia 2004-2005