1#include <xrpl/basics/CountedObject.h>
28 for (
auto* ctr =
head_.load(); ctr !=
nullptr; ctr = ctr->getNext())
30 if (ctr->getCount() >= minimumThreshold)
Manages all counted object types.
List getCounts(int minimumThreshold) const
static CountedObjects & getInstance() noexcept
std::vector< Entry > List
std::atomic< Counter * > head_
std::atomic< int > count_
CountedObjects() noexcept
T emplace_back(T... args)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.