|
cds
1.4.0
|
[type-option] Option setter for item counting More...
#include <cds/opt/options.h>
[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.