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