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
14namespace std
15{
16template <>
17struct hash<QString>
18{
19 size_t operator()(const QString &s) const noexcept { return qHash(s); }
20};
21} // namespace std
22#endif
KCALENDARCORE_EXPORT size_t qHash(const KCalendarCore::Period &key, size_t seed=0)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.