hashmap: 实现 resize()

This commit is contained in:
Calcitem 2020-11-01 10:10:32 +08:00
parent a68ca74d15
commit 9e422b8a6b
1 changed files with 3 additions and 4 deletions

View File

@ -132,10 +132,9 @@ namespace CTSL //Concurrent Thread Safe Library
#endif #endif
} }
void resize(size_t o) void resize(size_t size)
{ {
// TODO hashSize = size;
o = o;
return; return;
} }
@ -238,7 +237,7 @@ namespace CTSL //Concurrent Thread Safe Library
#else #else
F hashFn; F hashFn;
#endif #endif
const hashFn hashSize; hashFn hashSize;
#ifdef DISABLE_HASHBUCKET #ifdef DISABLE_HASHBUCKET
#ifndef HASHMAP_NOLOCK #ifndef HASHMAP_NOLOCK
mutable std::shared_timed_mutex mutex_; mutable std::shared_timed_mutex mutex_;