5 // Excruciatingly simple vector-of-pointers class. Easy & useful.
6 // No support for addition of elements anywhere but at the end of the
7 // list, nor for removal of elements. Does not delete (or interpret
8 // in any way) its contents.
16 void set(int i, void* p);
26 inline Vector::Vector()
33 inline Vector::~Vector()
38 inline int Vector::add(void* p)
46 inline void* Vector::get(int i)
51 inline void Vector::set(int i, void* p)
56 inline int Vector::size()
61 inline void Vector::realloc()
63 _nelem = 2*_nelem + 1;
64 void** array = new void*[_nelem];
65 for(int i=0; i<_sz; i++)