summaryrefslogtreecommitdiffhomepage
path: root/compat/qhash.hpp
blob: c2be4fc579bfdadf6af72982d5bca91b3a2c7d4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include <QString>
#include <QHashFunctions>

namespace std {
template<> struct hash<QString>
{
    unsigned operator()(const QString& value) const
    {
        return qHash(value);
    }
};
}