Tools.h++ Class Reference

Table Of Contents
true. Returns false if there is no such association.
bool
remove(bool (*fn)(const_reference,void*), void* d);
Removes the first association a in self such that the expression ((*fn)(a,d)) is true and
returns true. Returns false if there is no such element. 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.
size_type
removeAll(const K& key);
Removes all associations in self that have a key j that compares equal to key. Returns the
number of items removed.
size_type
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.
multimap<K,T,C,allocator>&
std();
const multimap<K,T,C,allocator>&
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 access to the
C++-standard interface as well as interoperability with other software components that
make use of the C++-standard collections.
Related Global Operators
RWvostream&
operator<<(RWvostream& strm,
const RWTValMultiMap<K,T,C>& coll);
RWFile&
operator<<(RWFile& strm, const RWTValMultiMap<K,T,C>& 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, RWTValMultiMap<K,T,C>& coll);