mirror-chatterino2/src/util/QStringHash.hpp

17 lines
231 B
C++
Raw Normal View History

2018-05-28 08:34:54 +02:00
#pragma once
#include <QHash>
#include <QString>
namespace std {
2018-06-26 16:37:59 +02:00
2018-05-28 08:34:54 +02:00
template <>
struct hash<QString> {
std::size_t operator()(const QString &s) const
{
return qHash(s);
}
};
2018-06-26 16:37:59 +02:00
2018-05-28 08:34:54 +02:00
} // namespace std