run-time (dynamic) array More...
Public Member Functions | |
Array () | |
default constructor - no allocation | |
Array (unsigned n) | |
construct with n elems | |
Array (Array< T, 0 > const &other) | |
copy constructor | |
~Array () | |
destructor - need to delete elems | |
Array< T, 0 > & | operator= (Array< T, 0 > const &other) |
assignment operator | |
T & | operator[] (unsigned i) |
mutable index operator | |
T const & | operator[] (unsigned i) const |
immutable index operator | |
unsigned | size () const |
get the size of this array | |
void | resize (unsigned n) |
resize the array |
run-time (dynamic) array