[type-option] Option setter for item counting More...
[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.
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.