summaryrefslogtreecommitdiffhomepage
path: root/compat/qhash.hpp
blob: ba569285153cd255529a60222fef6391183f89fa (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>
{
    constexpr unsigned operator()(const QString& value) const
    {
        return qHash(value);
    }
};
}