#ifndef __auto_array_H__ #define __auto_array_H__ // like auto_ptr, is an array of pointers of the type that will get freed at destruction #include namespace std { template class auto_array : public vector { public: auto_array(unsigned n_elements) { for(unsigned t=0;tsize();t++) delete this->operator[](t); } }; /* template class auto_array { public: auto_array(unsigned n_elements) { for(unsigned t=0;t v; }; */ }; #endif