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

#include <functional>
#include <QString>
#include <QHashFunctions>

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