Tools.h++ Manual
104011 Tandem Computers Incorporated 22-65
22
T* removeFirst();
Removes the first item in the collection and returns a pointer to it. An
exception of type
TOOL_INDEX
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
TOOL_INDEX
will be thrown if the list is empty.
void resize(size_t N);
Changes the capacity of the collection to
N
.
Note – The number of objects in the collection does not change, just the
capacity.