cds
2.3.2
|
Load factor based resizing policy. More...
#include <cds/intrusive/striped_set/resizing_policy.h>
Public Member Functions | |
template<typename Container , typename Bucket > | |
bool | operator() (size_t nSize, Container const &container, Bucket const &) 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.
When total item count in a container exceeds container.bucket_count() * LoadFactor
then resizing is needed.
This policy is stateless.
The reset()
function is called after the resizing is done. The function is intended for resetting internal state of the policy.
|
inline |
Main policy operator returns true
when resizing is needed.
nSize | Current item count of container |
container | Container |