cds  2.3.2
cds::opt::item_counter< Type > Struct Template Reference

[type-option] Option setter for item counting More...

#include <cds/opt/options.h>

Detailed Description

template<typename Type>
struct cds::opt::item_counter< Type >

[type-option] Option setter for item counting

Some data structure (for example, queues) has additional feature for item counting. This option allows to set up appropriate item counting policy for that data structure.

Predefined option Type:

You may provide other implementation of atomicity::item_counter interface for your needs.

Note, the item counting in lock-free containers cannot be exact; for example, if item counter for a container returns zero it is not mean that the container is empty. So, the item counter may be used for statistical purposes only.


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:50 by Doxygen 1.8.13