Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qcontainerfwd.h
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QCONTAINERFWD_H
5#define QCONTAINERFWD_H
6
7#include <QtCore/qtconfigmacros.h>
8#include <QtCore/qtypes.h>
9
10#if 0
11#pragma qt_class(QtContainerFwd)
12#endif
13
14// std headers can unfortunately not be forward declared
15#include <cstddef> // std::size_t
16#include <utility>
17#include <limits>
18
19QT_BEGIN_NAMESPACE
20
21template <typename Key, typename T> class QCache;
22template <typename Key, typename T> class QHash;
23template <typename Key, typename T> class QMap;
24template <typename Key, typename T> class QMultiHash;
25template <typename Key, typename T> class QMultiMap;
26#ifndef QT_NO_QPAIR
27template <typename T1, typename T2>
28using QPair = std::pair<T1, T2>;
29#endif
30template <typename T> class QQueue;
31template <typename T> class QSet;
32template <typename T, std::size_t E = std::size_t(-1) /* = std::dynamic_extent*/> class QSpan;
33template <typename T> class QStack;
35template <typename T, qsizetype Prealloc = QVarLengthArrayDefaultPrealloc> class QVarLengthArray;
36template <typename T> class QList;
37class QString;
38#ifndef Q_QDOC
39template<typename T> using QVector = QList<T>;
40using QStringList = QList<QString>;
41class QByteArray;
42using QByteArrayList = QList<QByteArray>;
43#else
44template<typename T> class QVector;
45class QStringList;
46class QByteArrayList;
47#endif
48class QMetaType;
49class QVariant;
50
51using QVariantList = QList<QVariant>;
52using QVariantMap = QMap<QString, QVariant>;
53using QVariantHash = QHash<QString, QVariant>;
54using QVariantPair = std::pair<QVariant, QVariant>;
55
56namespace QtPrivate
57{
60}
61
62QT_END_NAMESPACE
63
64#endif // QCONTAINERFWD_H
\inmodule QtCore
Definition qhash.h:821
Definition qlist.h:76
Definition qmap.h:189
Definition qspan.h:312
\macro QT_NO_KEYWORDS >
Definition qcompare.h:24
constexpr qsizetype MaxAllocSize
constexpr qsizetype QVarLengthArrayDefaultPrealloc