cds  2.3.2
cds::intrusive::striped_set::single_bucket_size_threshold< 0 > Struct Template Reference

Single bucket threshold resizing policy, stateful specialization. More...

#include <cds/intrusive/striped_set/resizing_policy.h>

Public Member Functions

 single_bucket_size_threshold ()
 Default ctor, the threshold is 4.
 
 single_bucket_size_threshold (size_t nThreshold)
 Ctor with explicitly defined nThreshold.
 
 single_bucket_size_threshold (single_bucket_size_threshold const &src)
 Copy ctor.
 
 single_bucket_size_threshold (single_bucket_size_threshold &&src)
 Move ctor.
 
template<typename Container , typename Bucket >
bool operator() (size_t, Container const &, Bucket const &bucket) const
 Main policy operator returns true when resizing is needed. More...
 
void reset ()
 Resets internal state of the policy (does nothing)
 

Data Fields

size_t m_nThreshold
 The bucket size threshold.
 

Detailed Description

template<>
struct cds::intrusive::striped_set::single_bucket_size_threshold< 0 >

Single bucket threshold resizing policy, stateful specialization.

This specialization allows to specify and modify a threshold at runtime.

Member Function Documentation

◆ operator()()

template<typename Container , typename Bucket >
bool cds::intrusive::striped_set::single_bucket_size_threshold< 0 >::operator() ( size_t  ,
Container const &  ,
Bucket const &  bucket 
) const
inline

Main policy operator returns true when resizing is needed.

Parameters
bucketreference to a container's bucket

The documentation for this struct was generated from the following file:

cds 2.3.2 Developed by Maxim Khizhinsky aka khizmax and other contributors 2007 - 2017
Autogenerated Sun Dec 31 2017 12:10:48 by Doxygen 1.8.13