Tools.h++ Manual

22-122 104011 Tandem Computers Incorporated
22
T operator[](size_t i) const;
T& operator[](size_t i);
Return the
i
'th value in the vector. The index
i
must be between 0 and the
length of the vector less one. Bounds checking will be performed.
Public member functions
const T* data() const;
Returns a pointer to the raw data of self. Should be used with care.
size_t length() const;
Returns the length of the vector.
void reshape(size_t N);
Changes the length of the vector to
N
. If this results in the vector being
lengthened, then the initial value of the additional elements is set by the
default constructor of
T
.