1#include <xrpl/resource/Charge.h>
12 : m_cost(cost), m_label(label)
52 return m_cost <=> c.
m_cost;
int value_type
The type used to hold a consumption charge.
Charge operator*(value_type m) const
std::string to_string() const
Converts this charge into a human readable string.
bool operator==(Charge const &) const
value_type cost() const
Return the cost of the charge in Resource::Manager units.
std::strong_ordering operator<=>(Charge const &) const
std::string const & label() const
Return the human readable label associated with the charge.
std::ostream & operator<<(std::ostream &os, Charge const &v)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.