Tools.h++ Class Reference

Table Of Contents
T*&
operator()(size_t i);
T* const&
operator()(size_t i) const;
Returns a pointer to the ith value in the vector. The first variant can be used as
an lvalue, the second cannot. The index i must be between zero and the number of
items in the collection less one. No bounds checking is performed.
T*&
operator[](size_t i);
T* const&
operator[](size_t i) const;
Returns a pointer to the ith value in the vector. The first variant can be used as
an lvalue, the second cannot. The index i must be between zero and the number of
items in the collection less one, or an exception of type RWBoundsError will be
thrown.
Public Member Functions
void
append(T* a);
Appends the item pointed to by a to the end of the vector. The collection will
automatically be resized if this causes the number of items in the collection to
exceed the capacity.
T*&
at(size_t i);
T* const&
at(size_t i) const;
Returns a pointer to the ith value in the vector. The first variant can be used as
an lvalue, the second cannot. The index i must be between zero and the number of
items in the collection less one, or an exception of type RWBoundsError will be
thrown.
void
clear();