62 template<>
struct hash<kaco::Address> {
73 const uint32_t a =
static_cast<uint32_t
>(s.
index);
74 const uint32_t b =
static_cast<uint32_t
>(s.
subindex);
75 return std::hash<uint32_t>()((a<<8)&b);
Tuple of object dictionary index and subindex.
result_type operator()(argument_type const &s) const
Hasher.
kaco::Address argument_type
Argument type.
uint8_t subindex
Sub-index.
std::size_t result_type
Result type.
bool operator==(const Address &other) const
Equality operator for use of Address as key type in std::unordered_map.