3#include <xrpl/basics/CountedObject.h>
4#include <xrpl/basics/contract.h>
29 if (!ledger->isImmutable())
30 LogicError(
"LedgerHolder::set with mutable Ledger");
Tracks the number of instances of an object.
Hold a ledger in a thread-safe way.
void set(std::shared_ptr< Ledger const > ledger)
std::shared_ptr< Ledger const > get()
std::shared_ptr< Ledger const > m_heldLedger
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void LogicError(std::string const &how) noexcept
Called when faulty logic causes a broken invariant.