hash: 将其他的64位定义改为由参数决定 (2)

This commit is contained in:
Calcitem 2019-11-18 00:37:30 +08:00
parent da6696448e
commit 652ee7ce0d
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ namespace CTSL //Concurrent Thread Safe Library
class HashMap
{
public:
HashMap(size_t hashSize_ = HASH_SIZE_DEFAULT) : hashSize(hashSize_)
HashMap(hash_t hashSize_ = HASH_SIZE_DEFAULT) : hashSize(hashSize_)
{
#ifdef DISABLE_HASHBUCKET
hashTable = new HashNode<K, V>[hashSize]; //create the hash table as an array of hash nodes