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