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 <utility> |
16 | |
17 | QT_BEGIN_NAMESPACE |
18 | |
19 | template <typename Key, typename T> class QCache; |
20 | template <typename Key, typename T> class QHash; |
21 | template <typename Key, typename T> class QMap; |
22 | template <typename Key, typename T> class QMultiHash; |
23 | template <typename Key, typename T> class QMultiMap; |
24 | template <typename T1, typename T2> |
25 | using QPair = std::pair<T1, T2>; |
26 | template <typename T> class QQueue; |
27 | template <typename T> class QSet; |
28 | template <typename T> class QStack; |
29 | template <typename T, qsizetype Prealloc = 256> class QVarLengthArray; |
30 | template <typename T> class QList; |
31 | class QString; |
32 | #ifndef Q_QDOC |
33 | template<typename T> using QVector = QList<T>; |
34 | using QStringList = QList<QString>; |
35 | class QByteArray; |
36 | using QByteArrayList = QList<QByteArray>; |
37 | #else |
38 | template<typename T> class QVector; |
39 | class QStringList; |
40 | class QByteArrayList; |
41 | #endif |
42 | class QMetaType; |
43 | class QVariant; |
44 | |
45 | using QVariantList = QList<QVariant>; |
46 | using QVariantMap = QMap<QString, QVariant>; |
47 | using QVariantHash = QHash<QString, QVariant>; |
48 | using QVariantPair = QPair<QVariant, QVariant>; |
49 | |
50 | QT_END_NAMESPACE |
51 | |
52 | #endif // QCONTAINERFWD_H |
53 | |