qpair.h: remove duplicate QPair alias definition

The original is in qcontainerfwd.h these days, so just include that.

Pick-to: 6.7
Change-Id: I1d0adaf528f158c48caf47d65b20d09eff06f57d
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Marc Mutz 2023-12-07 11:47:24 +01:00
parent b2288de7cd
commit 714cbf8255

View File

@ -4,6 +4,7 @@
#ifndef QPAIR_H
#define QPAIR_H
#include <QtCore/qcontainerfwd.h>
#include <QtCore/qglobal.h>
QT_BEGIN_NAMESPACE
@ -12,9 +13,6 @@ QT_BEGIN_NAMESPACE
#pragma qt_class(QPair)
#endif
template <typename T1, typename T2>
using QPair = std::pair<T1, T2>;
template <typename T1, typename T2>
constexpr decltype(auto) qMakePair(T1 &&value1, T2 &&value2)
noexcept(noexcept(std::make_pair(std::forward<T1>(value1), std::forward<T2>(value2))))