Panda3D
|
This is the default hash_compare class, which assumes the Key is a size_t value or can be implicitly converted to a size_t value (for instance, via a size_t typecast operator). More...
#include "stl_compares.h"
Public Member Functions | |
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 indicated key into a running hash. |
This is the default hash_compare class, which assumes the Key is a size_t value or can be implicitly converted to a size_t value (for instance, via a size_t typecast operator).
It is the same as the system-provided hash_compare.
Definition at line 138 of file stl_compares.h.
size_t integer_hash< Key, Compare >::add_hash | ( | size_t | start, |
const Key & | key | ||
) | [inline, static] |
Adds the indicated key into a running hash.
Definition at line 122 of file stl_compares.I.
References AddHash::add_hash().
Referenced by RenderState::get_hash().