HashMap< K, V, HASH, ENTRY_HANDLER, ALLOCATOR, MODE, INITIAL_CAPACITY, LOAD_FACTOR >::Hash< VALUEHASH > Class Template Reference

#include <hashmap.h>

详细描述

template<typename K, typename V, typename HASH = DefaultCompare, typename ENTRY_HANDLER = HashMapKeyValuePair, typename ALLOCATOR = DefaultAllocator, HASHMAP_MODE MODE = HASHMAP_MODE::DEFAULT, Int INITIAL_CAPACITY = 16, Int LOAD_FACTOR = (MODE == HASHMAP_MODE::SYNCHRONIZED) ? 0 : 10>
template<typename VALUEHASH>
class maxon::HashMap< K, V, HASH, ENTRY_HANDLER, ALLOCATOR, MODE, INITIAL_CAPACITY, LOAD_FACTOR >::Hash< VALUEHASH >

Class to compute the hash value of a HashMap . You have to use this as HASH class if you want to use HashMaps in HashSets or as keys in other HashMaps.

Template Parameters
VALUEHASH Hash class used for HashMap 值。

静态公共成员函数

static Bool   IsEqual (const HashMap &a, const HashMap &b, VALUEHASH &&hash=VALUEHASH())
static HashInt   GetHashCode (const HashMap &m)

成员函数文档编制

◆  IsEqual()

static Bool IsEqual ( const HashMap a ,
const HashMap b ,
VALUEHASH &&  hash = VALUEHASH()  
)
static

◆  GetHashCode()

static HashInt GetHashCode ( const HashMap m )
static