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
KTEXTEDITOR_EXPORT size_t qHash(KTextEditor::Cursor cursor, size_t seed=0) noexcept
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.