hashmap: 实现 resize()
This commit is contained in:
parent
a68ca74d15
commit
9e422b8a6b
|
@ -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_;
|
||||||
|
|
Loading…
Reference in New Issue