#include <cstddef>
#include <cstring>
#include <functional>
Go to the source code of this file.
◆ CRYPTO_MAKE_COMPARABLE
| #define CRYPTO_MAKE_COMPARABLE |
( |
|
type | ) |
|
Value: return std::memcmp(&_v1, &_v2,
sizeof(
type)) == 0; \
} \
return std::memcmp(&_v1, &_v2,
sizeof(
type)) != 0; \
} \
}
static bool operator!=(const rct::key &k0, const crypto::public_key &k1)
Definition: rctTypes.h:437
crypto namespace.
Definition: crypto.cpp:47
type
Definition: json.h:74
bool operator==(const cryptonote::transaction &a, const cryptonote::transaction &b)
Definition: cryptonote_basic_impl.cpp:351
◆ CRYPTO_MAKE_HASHABLE
| #define CRYPTO_MAKE_HASHABLE |
( |
|
type | ) |
|
Value: static_assert(
sizeof(std::size_t) <=
sizeof(
type),
"Size of " #
type " must be at least that of size_t"); \
inline std::size_t hash_value(
const type &_v) { \
return reinterpret_cast<const std::size_t &>(_v); \
} \
} \
template<> \
struct hash<crypto::type> { \
return reinterpret_cast<const std::size_t &>(_v); \
} \
}; \
}
#define CRYPTO_MAKE_COMPARABLE(type)
Definition: generic-ops.h:38
crypto namespace.
Definition: crypto.cpp:47
Definition: block_queue.cpp:41
type
Definition: json.h:74