#include #ifndef ICLARRAY_H #define ICLARRAY_H namespace icl{ template class Array : public std::vector{ public: Array(unsigned int dim=0) : std::vector(dim){} Array(const Array &a):std::vector(a){} Array(T* src, int dim):std::vector(dim){ for(int i=0;isize()) return 0; return &((*this)[0]); } // deprecated operator T* operator*(){ if(!this->size()) return 0; return &((*this)[0]); } const T* ptr() const { if(!this->size()) return 0; return &((*this)[0]); } T* ptr(){ if(!this->size()) return 0; return &((*this)[0]); } }; } // namespace icl #endif