Tools.h++ Class Reference

Table Of Contents
T
removeFirst();
Removes and returns the first item in the list. The behavior is undefined if the list is empty.
T
removeLast();
Removes and returns the last item in the list. The behavior is undefined if the list is empty. This
function is relatively slow because removing the last link in a singly-linked list necessitates
access to the next-to-the-last link, requiring the whole list to be searched.
Related Global Operators
RWvostream&
operator<<(RWvostream& strm, const RWTValSlist<T>& coll);
RWFile&
operator<<(RWFile& strm, const RWTValSlist<T>& coll);
Saves the collection coll onto the output stream strm, or a reference to it if it has already been
saved.
RWvistream&
operator>>(RWvistream& strm, RWTValSlist<T>& coll);
RWFile&
operator>>(RWFile& strm, RWTValSlist<T>& coll);
Restores the contents of the collection coll from the input stream strm.
RWvistream&
operator>>(RWvistream& strm, RWTValSlist<T>*& p);
RWFile&
operator>>(RWFile& strm, RWTValSlist<T>*& p);
Looks at the next object on the input stream strm and either creates a new collection off the heap
and sets p to point to it, or sets p to point to a previously read instance. If a collection is created
off the heap, then you are responsible for deleting it.