I haven\'t worked with c++ in a while, but I just started a project with it. This may not be possible, but Im trying to create a template class with an array that sets its s
std::vector is precisely the tool for this job:
std::vector
template class Tarray { private: std::vector this_array; public: Tarray(int s): this_array(s){ } ~Tarray(){ } T & operator[](int i){ return this_array[i]; } };