Tools.h++ Class Reference

Table Of Contents
Removes all elements t in self such that the expression ((*fn)(t,d))is true. Returns the
number of items removed. fn points to a user-defined tester function which must have
prototype:
bool yourTester(const T* a, void* d);
Client data may be passed through parameter d.
T*
removeAt(size_type i);
Removes and returns the item at position i in self. This position must be between zero
and one less then the number of entries in the collection, otherwise the function throws an
exception of type RWBoundsErr.
T*
removeFirst();
Removes and returns the first item in the collection.
T*
removeLast();
Removes and returns the first item in the collection.
const list<T*,allocator>&
std() const;
Returns a reference to the underlying C++-standard collection that serves as the
implementation for self.
Static Public Data Member
const size_type npos;
This is the value returned by member functions such as index to indicate a non-position.
The value is equal to ~(size_type)0.
Related Global Operators
RWvostream&
operator<<(RWvostream& strm,
const RWTPtrSortedDlist<T,C>& coll);
RWFile&
operator<<(RWFile& strm, const RWTPtrSortedDlist<T,C>& 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, RWTPtrSortedDlist<T,C>& coll);
RWFile&