Tools.h++ Manual
104011 Tandem Computers Incorporated 21-161
21
void insertAt(size_t indx,
RWCollectable* e);
Adds a new item to the collection at position
indx
. The item previously at
position
i
is moved to
i+1
, etc. The index
indx
must be between 0 and the
number of items in the collection, or an exception of type
RWBoundsErr
will
be thrown.
virtual RWCollectable* last() const = 0;
Returns the last item in the collection.
RWCollectable* prepend(RWCollectable*) = 0;
Adds the item to the beginning of the collection and returns it. Returns nil if
the insertion was unsuccessful.