cds  1.4.0
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. Thus, item counter may be used for statistical purposes only.


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

cds 1.4.0 Developed by Maxim Khiszinsky aka khizmax 2007 - 2012
Autogenerated Mon May 20 2013 00:38:01 by Doxygen 1.8.3.1