Tools.h++ Class Reference

Table Of Contents
removeAll(bool (*fn)(const_reference,void*), void* d);
Removes all associations a in self such that the expression ((*fn)(a,d))is true. Returns the
number of items removed. 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
resize(size_type sz);
Changes the capacity of self by creating a new hashed multimap 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.
rw_hashmultimap<K,T,H,EQ>&
std();
const rw_hashmultimap<K,T,H,EQ>&
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 accessibility to the
C++-standard interface and interoperability with other software components that make use of
the C++-standard collections.
Related Global Operators
RWvostream&
operator<<(RWvostream& strm,
const RWTValHashMultiMap<K,T,H,EQ>& coll);
RWFile&
operator<<(RWFile& strm,
const RWTValHashMultiMap<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&
operator>>(RWvistream& strm,
RWTValHashMultiMap<K,T,H,EQ>& coll);
RWFile&
operator>>(RWFile& strm, RWTValHashMultiMap<K,T,H,EQ>& coll);
Restores the contents of the collection coll from the input stream strm.
RWvistream&
operator>>(RWvistream& strm, RWTValHashMultiMap<K,T,H,EQ>*& p);
RWFile&
operator>>(RWFile& strm, RWTValHashMultiMap<K,T,H,EQ>*& p);
Looks at the next object on the input stream strm and either creates a new collection off the