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