5#include <xrpl/beast/hash/hash_append.h>
7#include <boost/operators.hpp>
25template <
class Int,
class Tag>
27 : boost::totally_ordered<
28 tagged_integer<Int, Tag>,
29 boost::integer_arithmetic<
30 tagged_integer<Int, Tag>,
32 tagged_integer<Int, Tag>,
33 boost::unit_steppable<tagged_integer<Int, Tag>, boost::shiftable<tagged_integer<Int, Tag>>>>>>
49 static_assert(
sizeof(
tagged_integer) ==
sizeof(Int),
"tagged_integer is adding padding");
153 operator++() noexcept
160 operator--() noexcept
167 operator Int() const noexcept
196template <
class Int,
class Tag,
class HashAlgorithm>
A type-safe wrap around standard integral types.
std::istream & operator>>(std::istream &is, Endpoint &endpoint)
Input stream conversion.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
bool operator<(Slice const &lhs, Slice const &rhs) noexcept
constexpr ApplyFlags operator~(ApplyFlags const &flags)
constexpr base_uint< Bits, Tag > operator+(base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b)
constexpr HashRouterFlags & operator|=(HashRouterFlags &lhs, HashRouterFlags rhs)
Number operator-(Number const &x, Number const &y)
std::string to_string(base_uint< Bits, Tag > const &a)
std::ostream & operator<<(std::ostream &out, base_uint< Bits, Tag > const &u)
constexpr HashRouterFlags & operator&=(HashRouterFlags &lhs, HashRouterFlags rhs)
constexpr bool operator==(base_uint< Bits, Tag > const &lhs, base_uint< Bits, Tag > const &rhs)
is_contiguously_hashable()=default
Metafunction returning true if the type can be hashed in one call.