This hash_compare class hashes a string. More...
#include "stl_compares.h"
Public Member Functions | |
size_t | operator() (const Key &key) const |
Trivially computes a size_t hash from the components of the string. More... | |
bool | operator() (const Key &a, const Key &b) const |
Public Member Functions inherited from stl_hash_compare< Key, Compare > | |
bool | is_equal (const Key &a, const Key &b) const |
size_t | operator() (const Key &key) const |
bool | operator() (const Key &a, const Key &b) const |
Static Public Member Functions | |
static size_t | add_hash (size_t start, const Key &key) |
Adds the elements of the indicated key into a running hash. More... | |
This hash_compare class hashes a string.
It assumes the Key is a string or provides begin() and end() methods that iterate through Key::value_type.
Definition at line 154 of file stl_compares.h.
|
inlinestatic |
Adds the elements of the indicated key into a running hash.
Definition at line 168 of file stl_compares.I.
References AddHash::add_hash().
|
inline |
Trivially computes a size_t hash from the components of the string.
Definition at line 159 of file stl_compares.I.