|
|
@ -207,6 +207,11 @@ struct polygon_face_t { |
|
|
|
|
|
|
|
namespace std |
|
|
|
{ |
|
|
|
template <> |
|
|
|
struct hash<compact_bg_mesh_coord_t> { |
|
|
|
size_t operator()(const compact_bg_mesh_coord_t& coord) const { return static_cast<size_t>(coord.hashed_value); } |
|
|
|
}; |
|
|
|
|
|
|
|
template <> |
|
|
|
struct hash<vertex_header_t> { |
|
|
|
size_t operator()(const vertex_header_t& v) const { return XXH3_64bits(&v, sizeof(vertex_header_t)); } |
|
|
@ -256,7 +261,7 @@ template <size_t N> |
|
|
|
struct equal_to<pod_key_t<N>> { |
|
|
|
bool operator()(const pod_key_t<N>& k1, const pod_key_t<N>& k2) const |
|
|
|
{ |
|
|
|
return static_cast<std::array<uint32_t, N>>(k1) == static_cast<std::array<uint32_t, N>>(k2); |
|
|
|
return static_cast<std::array<uint64_t, N>>(k1) == static_cast<std::array<uint64_t, N>>(k2); |
|
|
|
} |
|
|
|
}; |
|
|
|
} // namespace std
|
|
|
|