26 #if defined(_CPP_VECTOR) || defined(_GLIBCXX_VECTOR) || defined(__SGI_STL_VECTOR) || defined(_LIBCPP_VECTOR)
27 template<
class T>
void vector_delete (std::vector<T *> *vec)
29 typename std::vector<T *>::iterator i;
31 for (i = vec->begin(); i != vec->end(); i++) {
38 #if defined(_CPP_MAP) || defined(_GLIBCXX_MAP) || defined(__SGI_STL_MAP)
39 template<
class K,
class T>
void map_delete (std::map<K, T *> *m)
41 typename std::map<K, T *>::iterator i;
43 for (i = m->begin(); i != m->end(); i++) {
50 #if defined(_CPP_LIST) || defined(_GLIBCXX_LIST) || defined(__SGI_STL_LIST)
51 template<
class T>
void list_delete (std::list<T *> *l)
53 typename std::list<T *>::iterator i;
55 for (i = l->begin(); i != l->end(); i++) {
63 #if defined(_CPP_SLIST) || defined(_GLIBCXX_SLIST) || defined(__SGI_STL_SLIST)
64 template<
class T>
void slist_delete (std::slist<T *> *l)
66 typename std::slist<T *>::iterator i;
68 for (i = l->begin(); i != l->end(); i++) {
76 #if defined(_CPP_SET) || defined(_GLIBCXX_SET) || defined(__SGI_STL_SET)
77 template<
class T>
void set_delete (std::set<T *> *sset)
79 typename std::set<T *>::iterator i;
81 for (i = sset->begin(); i != sset->end(); i++) {
84 sset->erase (sset->begin(), sset->end());