Tools.h++ Class Reference

Table Of Contents
bool yourTester(const_reference 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 0 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.
size_type
replaceAll(const_reference oldVal, const_reference newVal);
Replaces all elements t in self such that the expression (t == oldVal) is true with newVal.
Returns the number of items replaced.
size_type
replaceAll(bool (*fn)(const_reference,void*), void* d,
const value_type& newval);
Replaces all elements t in self such that the expression ((*fn)(t,d))is true. Returns the
number of items replaced. fn points to a user-defined tester function which must have
prototype:
bool yourTester(const_reference a, void* d);
Client data may be passed through parameter d.
void
sort();
Sorts the collection using the less-than operator to compare elements.
list<T,allocator>&
std();
const list<T>&
std() const;
Returns a reference to the underlying C++-standard collection that serves as the
implementation for self. This reference may be used freely, providing access to the
C++-standard interface as well as interoperability with other software components that
make use of the C++-standard collections.