VisionFlowPro/NodeEditorPro/include/nodes/QUuidStdHash.hpp

22 lines
242 B
C++
Raw Normal View History

2023-02-28 14:50:28 +08:00
#pragma once
#include <functional>
#include <QtCore/QUuid>
#include <QtCore/QVariant>
namespace std
{
template<>
struct hash<QUuid>
{
inline
std::size_t
operator()(QUuid const& uid) const
{
return qHash(uid);
}
};
}