Tools.h++ Class Reference

Table Of Contents
T*
removeAt(size_t i);
Removes the object at index i and returns a pointer to it. An exception of type
RWBoundsError will be thrown if i is not a valid index. Valid indices are from zero
to the number of items in the list less one.
T*
removeFirst();
Removes the first item in the collection and returns a pointer to it. An exception
of type RWBoundsError will be thrown if the list is empty.
T*
removeLast();
Removes the last item in the collection and returns a pointer to it. An exception of
type RWBoundsError will be thrown if the list is empty.
void
resize(size_t N);
Changes the capacity of the collection to N. Note that the number of objects in the
collection does not change, just the capacity.
Related Global Operators
RWvostream&
operator<<(RWvostream& strm,
const RWTPtrOrderedVector<T>& coll);
RWFile&
operator<<(RWFile& strm, const RWTPtrOrderedVector<T>& coll);
Saves the collection coll onto the output stream strm, or a reference to it if it has
already been saved.