5 #ifndef BITCOIN_UTIL_HASH_TYPE_H 6 #define BITCOIN_UTIL_HASH_TYPE_H 8 template <
typename HashType>
23 const unsigned char*
begin()
const 33 const unsigned char*
end()
const 38 operator std::vector<unsigned char>()
const 40 return std::vector<unsigned char>{
m_hash.begin(),
m_hash.end()};
50 return m_hash == other.m_hash;
55 return !(
m_hash == other.m_hash);
58 bool operator<(const BaseHash<HashType>& other)
const noexcept
60 return m_hash < other.m_hash;
69 const unsigned char*
data()
const {
return m_hash.data(); }
72 #endif // BITCOIN_UTIL_HASH_TYPE_H
const unsigned char * data() const
const unsigned char * begin() const
const unsigned char * end() const
bool operator!=(const BaseHash< HashType > &other) const noexcept
std::string ToString() const
BaseHash(const HashType &in)
bool operator==(const BaseHash< HashType > &other) const noexcept