4 * Created on: Oct 12, 2009
14 * A simple fixed-length array of type T, automatically freed in the
20 AutoArray(size_t sz) {
23 memset(t_, 0, sz*sizeof(T));
26 ~AutoArray() { if(t_ != NULL) delete[] t_; }
27 T& operator[](size_t sz) {
30 const T& operator[](size_t sz) const {
38 #endif /* AUTO_ARRAY_H_ */