/* * File: array.h * Author: Robert I. Pitts * Last Modified: Fall 2000 * Topic: Templates * ----------------------------------------------------- * * This is the interface for a class representing a resizable array. * The class is a template class, and thus, must be instantiated * with the type of item to hold in the array. * */ #ifndef _ARRAY_H #define _ARRAY_H template class Array { public: Array(); ~Array(); void resize(int new_size); Item &operator [](int index); int size() const; private: Item *contents; int sz; }; #include "array.tem" #endif /* not defined _ARRAY_H */