Tools.h++ Class Reference

Table Of Contents
K*
remove(bool (*fn)(value_type,void*), void* d);
Removes the first association a in self such that the expression ((*fn)(a,d)) is true and returns
its key. Returns rwnil if there is no such association. fn points to a user-defined tester
function which must have prototype:
bool yourTester(value_type a, void* d);
Client data may be passed through parameter d.
size_type
removeAll(const K* key);
Removes all associations with key j in self that compare equal to *key. Returns the number of
associations removed.
size_type
removeAll(bool (*fn)(value_type,void*), void* d);
Removes all associations a in self such that the expression ((*fn)(a,d))is true. Returns the
number removed. fn points to a user-defined tester function which must have prototype:
bool yourTester(value_type a, void* d);
Client data may be passed through parameter d.
void
resize(size_type sz);
Changes the capacity of self by creating a new hashed multi-map with a capacity of sz .
resize then copies every element of self into the new container and finally swaps the internal
representation of the new container with self.
container_type&
std();
const container_type&
std() const;
Returns a reference to the underlying C++-standard collection that serves as the
implementation for self.
Related Global Operators
RWvostream&
operator<<(RWvostream& strm,
const RWTPtrHashMultiMap<K,T,H,EQ>& coll);
RWFile&
operator<<(RWFile& strm,
const RWTPtrHashMultiMap<K,T,H,EQ>& coll);
Saves the collection coll onto the output stream strm, or a reference to it if it has already been
saved.
RWvistream&