This is a simple, type-safe, and reasonably efficient hash map class,
whose interface is a subset of the interface of STL containers. In
particular, the interface is modelled after std::map, and the various,
This is a simple, type-safe, and reasonably efficient hash map class,
whose interface is a subset of the interface of STL containers. In
particular, the interface is modelled after std::map, and the various,
three predefined hashing functions: {\tt wxIntegerHash}
for integer types ( {\tt int}, {\tt long}, {\tt short},
and their unsigned counterparts ), {\tt wxStringHash} for strings
three predefined hashing functions: {\tt wxIntegerHash}
for integer types ( {\tt int}, {\tt long}, {\tt short},
and their unsigned counterparts ), {\tt wxStringHash} for strings
Returns an iterator pointing at the first element of the hash map.
Please remember that hash maps do not guarantee ordering.
Returns an iterator pointing at the first element of the hash map.
Please remember that hash maps do not guarantee ordering.
\constfunc{size\_type}{count}{\param{const key\_type\&}{ key}}
Counts the number of elements with the given key present in the map.
This function can actually return 0 or 1.
\constfunc{size\_type}{count}{\param{const key\_type\&}{ key}}
Counts the number of elements with the given key present in the map.
This function can actually return 0 or 1.
\constfunc{bool}{empty}{}
Returns true if the hash map does not contain any element, false otherwise.
\constfunc{bool}{empty}{}
Returns true if the hash map does not contain any element, false otherwise.
Returns an iterator pointing at the one-after-the-last element of the hash map.
Please remember that hash maps do not guarantee ordering.
Returns an iterator pointing at the one-after-the-last element of the hash map.
Please remember that hash maps do not guarantee ordering.
Erases the element pointed to by the iterator. After the deletion
the iterator is no longer valid and must not be used.
Erases the element pointed to by the iterator. After the deletion
the iterator is no longer valid and must not be used.
an iterator pointing at that element, otherwise an invalid iterator
is returned (i.e. hashmap.find( non\_existent\_key ) == hashmap.end()).
an iterator pointing at that element, otherwise an invalid iterator
is returned (i.e. hashmap.find( non\_existent\_key ) == hashmap.end()).
given key is not present in the hash map, an element with the
default {\tt value\_type()} is inserted in the table.
given key is not present in the hash map, an element with the
default {\tt value\_type()} is inserted in the table.