Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/QtCore/qpair.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 
0004 #ifndef QPAIR_H
0005 #define QPAIR_H
0006 
0007 #include <QtCore/qcontainerfwd.h>
0008 #include <QtCore/qglobal.h>
0009 
0010 QT_BEGIN_NAMESPACE
0011 
0012 #if 0
0013 #pragma qt_class(QPair)
0014 #endif
0015 
0016 #ifndef QT_NO_QPAIR
0017 
0018 template <typename T1, typename T2>
0019 constexpr decltype(auto) qMakePair(T1 &&value1, T2 &&value2)
0020     noexcept(noexcept(std::make_pair(std::forward<T1>(value1), std::forward<T2>(value2))))
0021 {
0022     return std::make_pair(std::forward<T1>(value1), std::forward<T2>(value2));
0023 }
0024 
0025 #endif // QT_NO_QPAIR
0026 
0027 QT_END_NAMESPACE
0028 
0029 #endif // QPAIR_H