20 #ifndef BEAST_UTILITY_TAGGED_INTEGER_H_INCLUDED
21 #define BEAST_UTILITY_TAGGED_INTEGER_H_INCLUDED
23 #include <ripple/beast/hash/hash_append.h>
24 #include <boost/operators.hpp>
43 template <
class Int,
class Tag>
45 : boost::totally_ordered<
46 tagged_integer<Int, Tag>,
47 boost::integer_arithmetic<
48 tagged_integer<Int, Tag>,
50 tagged_integer<Int, Tag>,
51 boost::unit_steppable<
52 tagged_integer<Int, Tag>,
53 boost::shiftable<tagged_integer<Int, Tag>>>>>>
68 sizeof(OtherInt) <=
sizeof(Int)>::type>
73 "tagged_integer is adding padding");
177 operator++() noexcept
184 operator--() noexcept
190 explicit operator Int() const noexcept
219 template <
class Int,
class Tag,
class HashAlgorithm>
ApplyFlags operator&=(ApplyFlags &lhs, ApplyFlags const &rhs)
std::istream & operator>>(std::istream &is, Endpoint &endpoint)
Input stream conversion.
Number operator-(Number const &x, Number const &y)
is_contiguously_hashable()=default
std::ostream & operator<<(std::ostream &os, TOffer< TIn, TOut > const &offer)
bool operator==(Manifest const &lhs, Manifest const &rhs)
ApplyFlags operator|=(ApplyFlags &lhs, ApplyFlags const &rhs)
constexpr base_uint< Bits, Tag > operator+(base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b)
bool operator<(CanonicalTXSet::Key const &lhs, CanonicalTXSet::Key const &rhs)
Metafunction returning true if the type can be hashed in one call.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::string to_string(Manifest const &m)
Format the specified manifest to a string for debugging purposes.
A type-safe wrap around standard integral types.
constexpr ApplyFlags operator~(ApplyFlags const &flags)