Tools.h++ Class Reference

Table Of Contents
copied into self. Returns the number of elements inserted.
void
swap(rw_hashmultiset<T,Hash,EQ>& other);
Exchanges the contents of self with other including the Hash and EQ objects. This
method does not copy or destroy any of the items exchanged but exchanges the
underlying hash tables.
Special Methods for Multisets
size_type
count(const key_type& key) const;
Returns the number of items in self which are EQ to key.
const_iterator
find(const key_type& key) const;
Returns a const_iterator referencing some item EQ to key if such an item is contained in
self, else returns end().
iterator
find(const key_type& key);
Returns an iterator referencing some item EQ to key if such a item is contained in self,
else returns end().
void
resize(size_type sz);
Resizes self's hash table to have sz slots; and re-hashes all self's elements into the new
table. Can be very expensive if self holds many elements.