hashmap: Replace hash_t to hashFn

This commit is contained in:
Calcitem 2020-05-16 02:18:43 +08:00
parent 68b89788fd
commit f243e537cd
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ namespace CTSL //Concurrent Thread Safe Library
class HashMap
{
public:
HashMap(hash_t hashSize_ = HASH_SIZE_DEFAULT) : hashSize(hashSize_)
HashMap(hashFn hashSize_ = HASH_SIZE_DEFAULT) : hashSize(hashSize_)
{
#ifdef DISABLE_HASHBUCKET
hashTable = new HashNode<K, V>[hashSize]; //create the key table as an array of key nodes
@ -230,7 +230,7 @@ namespace CTSL //Concurrent Thread Safe Library
#else
F hashFn;
#endif
const hash_t hashSize;
const hashFn hashSize;
#ifdef DISABLE_HASHBUCKET
#ifndef HASHMAP_NOLOCK
mutable std::shared_timed_mutex mutex_;