A CRTP base class that keeps a global count of instances of a type.
Declared in <folly/concurrency/SingletonRelaxedCounter.h>
template<typename Counted>
class SingletonRelaxedCountable;
The running count is maintained with a relaxed SingletonRelaxedCounter. To avoid adding names to the counted type, the count is read through the separate type SingletonRelaxedCountableAccess.
| Name | Description |
|---|---|
SingletonRelaxedCountable [constructor] | Constructors |
~SingletonRelaxedCountable [destructor] | Destroys the base and decrements the instance count. |
operator= | Assignment operators |
| Name | Description |
|---|---|
folly::SingletonRelaxedCountableAccess | Provides access to the running instance count of a countable type. |
| Name | Description |
|---|---|
| Counted | The derived type being counted. |