Tools.h++ Class Reference

Table Of Contents
Sets self to the set-theoretic difference given by (self - s).
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, T& k) const;
If there exists an element t in self that compares equal to a, 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, T& 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.
void
intersection(const RWTValMultiSet<T,C>& s);
void
intersection(const container_type& s);
Sets self to the intersection of self and s.
bool
insert(const_reference a);
Adds the item a to the collection. Returns true.
bool
isEmpty() const;
Returns true if there are no items in the collection, false otherwise.
bool
isEquivalent(const RWTValMultiSet<T,C>& s) const;
Returns true if there is set equivalence between self and s, and returns false otherwise.
bool
isProperSubsetOf(const RWTValMultiSet<T,C>& s) const;