mirror-chatterino2/src/util/QStringHash.hpp

17 lines
215 B
C++
Raw Normal View History

#pragma once
#include <QHash>
#include <QString>
namespace std {
template <>
struct hash<QString> {
std::size_t operator()(const QString &s) const
{
return qHash(s);
}
};
} // namespace std