Kstars

qstring_hash.h
1 /*
2  SPDX-FileCopyrightText: 2021 Valentin Boettcher <hiro at protagon.space; @hiro98:tchncs.de>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #include <QtGlobal>
8 #pragma once
9 #if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0))
10 #include <QHash>
11 #include <QString>
12 #include <functional>
13 
14 namespace std
15 {
16 template <>
17 struct hash<QString>
18 {
19  size_t operator()(const QString &s) const noexcept { return qHash(s); }
20 };
21 } // namespace std
22 #endif
KCALENDARCORE_EXPORT uint qHash(const KCalendarCore::Period &key)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Aug 9 2022 04:06:06 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.