folly::SingletonRelaxedCountableAccess

Provides access to the running instance count of a countable type.

Synopsis

Declared in <folly/concurrency/SingletonRelaxedCounter.h>

template<typename Counted>
class SingletonRelaxedCountableAccess;

Description

It reads the count maintained by the CRTP base SingletonRelaxedCountable.

Static Member Functions

NameDescription
count Reports the current number of live instances of the counted type.

Template Parameters

NameDescription
CountedThe type whose instances are counted.