Public Member Functions

can::Array< T, 0 > Class Template Reference

run-time (dynamic) array More...

Inheritance diagram for can::Array< T, 0 >:
can::NewArray< T > mth::Vector< T, 0 >

List of all members.

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

Detailed Description

template<class T>
class can::Array< T, 0 >

run-time (dynamic) array

Definition at line 56 of file canArray.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines