Tools.h++ Class Reference

Table Of Contents
Assumes that type T has well-defined less-than semantics (T::operator<(const T&) or
equivalent).
bool
operator==(const RWTValSortedDlist<T,C>& lst) const;
bool
operator==(const list<T>& lst) const;
Returns true if self compares equal to lst, otherwise returns false. Two collections are
equal if both have the same number of entries, and iterating through both collections
produces, in turn, individual elements that compare equal to each other.
const_reference
operator()(size_type i) const;
Returns a reference to the ith element of self. Index i should be between 0 and one less
then the number of entries, otherwise the results are undefined--no bounds checking is
performed.
const_reference
operator[](size_type i) const;
Returns a reference to the ith element of self. Index i must be between 0 and one less then
the number of entries in self, otherwise the function throws an exception of type
RWBoundsErr.
Public Member Functions
void
apply(void (*fn)(const_reference,void*), void* d) const;
Applies the user-defined function pointed to by fn to every item in the collection. This
function must have prototype:
void yourfun(const_reference a, void* d);
Client data may be passed through parameter d.
const_reference
at(size_type i) const;
Returns a reference to the ith element of self. Index i must be between 0 and one less then
the number of entries in self, otherwise the function throws an exception of type
RWBoundsErr.
iterator
begin();
const_iterator
begin() const;
Returns an iterator positioned at the first element of self.
void