cds
2.3.2
|
Load factor based resizing policy, stateful specialization. More...
#include <cds/intrusive/striped_set/resizing_policy.h>
Public Member Functions | |
load_factor_resizing () | |
Default ctor, load factor is 4. | |
load_factor_resizing (size_t nLoadFactor) | |
Ctor with explicitly defined nLoadFactor . | |
load_factor_resizing (load_factor_resizing const &src) | |
Copy ctor. | |
load_factor_resizing (load_factor_resizing &&src) | |
Move ctor. | |
template<typename Container , typename Bucket > | |
bool | operator() (size_t nSize, Container const &container, Bucket const &) |
Main policy operator returns true when resizing is needed. More... | |
void | reset () |
Resets internal state of the policy (does nothing) | |
Load factor based resizing policy, stateful specialization.
This specialization allows to specify a load factor at runtime.
|
inline |
Main policy operator returns true
when resizing is needed.
nSize | Current item count of container |
container | Container |