blob: 5286e97e6150d8d360938453da3eb94a65b2b79f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#pragma once
#include <functional>
#include <QtGlobal>
#include <QString>
#include <QHashFunctions>
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
#include <cstdlib>
namespace std {
template<> struct hash<QString>
{
using argument_type = QString;
using result_type = std::size_t;
std::size_t operator()(const QString& value) const noexcept
{
return (std::size_t) qHash(value);
}
};
}
#endif
|