cds  2.3.3
cds::intrusive::michael_set::traits Struct Reference

MichaelHashSet traits. More...

#include <cds/intrusive/details/michael_set_base.h>

Public Types

typedef opt::none hash
 Hash function. More...
 
typedef cds::atomicity::item_counter item_counter
 Item counter. More...
 
typedef CDS_DEFAULT_ALLOCATOR allocator
 Bucket table allocator. More...
 

Detailed Description

Member Typedef Documentation

Bucket table allocator.

Allocator for bucket table. Default is CDS_DEFAULT_ALLOCATOR The allocator uses only in constructor for allocating bucket table and in destructor for destroying bucket table

Hash function.

Hash function converts the key fields of struct T stored in the hash-set into value of type size_t called hash value that is an index of hash table.

This is mandatory type and has no predefined one.

Item counter.

The item counting is an important part of MichaelHashSet algorithm: the empty() member function depends on correct item counting. You may use atomicity::empty_item_counter if don't need empty() and size() member functions.

Default is atomicity::item_counter; to avoid false sharing you may use atomicity::cache_friendly_item_counter


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

cds 2.3.3 Developed by Maxim Khizhinsky aka khizmax and other contributors 2007 - 2017
Autogenerated Sun Apr 5 2026 09:49:57 by Doxygen 1.8.10