BigFile/Sasquatch #1
@@ -84,8 +84,6 @@ class UUID
|
||||
static UUID NULL_UUID;
|
||||
|
||||
private:
|
||||
friend struct std::hash<UUID>;
|
||||
|
||||
/**
|
||||
* The uuid.
|
||||
*/
|
||||
@@ -107,25 +105,14 @@ class UUID
|
||||
|
||||
template<>
|
||||
struct std::hash<Bigfoot::UUID>
|
||||
{
|
||||
std::size_t operator()(const Bigfoot::UUID& p_uuid) const noexcept
|
||||
{
|
||||
return std::hash<uuids::uuid>()(p_uuid.m_uuid);
|
||||
}
|
||||
};
|
||||
|
||||
/****************************************************************************************/
|
||||
|
||||
template<>
|
||||
struct ankerl::unordered_dense::hash<Bigfoot::UUID>
|
||||
{
|
||||
using is_avalanching = void;
|
||||
|
||||
[[nodiscard]]
|
||||
std::uint64_t operator()(const Bigfoot::UUID& p_uuid) const noexcept
|
||||
std::size_t operator()(const Bigfoot::UUID& p_uuid) const noexcept
|
||||
{
|
||||
const auto bytes = p_uuid.ToBytes();
|
||||
return detail::wyhash::hash(bytes.data(), bytes.size());
|
||||
return ankerl::unordered_dense::detail::wyhash::hash(bytes.data(), bytes.size());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user