Tools.h++ Class Reference

Table Of Contents
clear();
Clears the collection by removing all items from self. Each item will have its destructor
called.
bool
contains(const_reference a) const;
Returns true if there exists an element t in self such that the expression(t==a) is true,
otherwise returns false.
bool
contains(bool (*fn)(const_reference,void*), void* d) const;
Returns true if there exists an element t in self such that the expression ((*fn)(t,d)) is true,
otherwise returns false. 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.
iterator
end();
const_iterator
end() const;
Returns an iterator positioned "just past" the last element in self.
size_type
entries() const;
Returns the number of items in self.
bool
find(const_reference a, value_type& k) const;
If there exists an element t in self such that the expression (t == a) is true, assigns t to k
and returns true. Otherwise, returns false and leaves the value of k unchanged.
bool
find(bool (*fn)(const_reference,void*), void* d,
value_type& k) const;
If there exists an element t in self such that the expression ((*fn)(t,d)) is true, assigns t to
k and returns true. Otherwise, returns false and leaves the value of k unchanged. 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.
reference
first();
const_reference