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 // Qt-Security score:significant reason:default
0004 
0005 #ifndef QPAIR_H
0006 #define QPAIR_H
0007 
0008 #include <QtCore/qcontainerfwd.h>
0009 #include <QtCore/qglobal.h>
0010 
0011 QT_BEGIN_NAMESPACE
0012 
0013 #if 0
0014 #pragma qt_class(QPair)
0015 #endif
0016 
0017 #ifndef QT_NO_QPAIR
0018 
0019 template <typename T1, typename T2>
0020 constexpr decltype(auto) qMakePair(T1 &&value1, T2 &&value2)
0021     noexcept(noexcept(std::make_pair(std::forward<T1>(value1), std::forward<T2>(value2))))
0022 {
0023     return std::make_pair(std::forward<T1>(value1), std::forward<T2>(value2));
0024 }
0025 
0026 #endif // QT_NO_QPAIR
0027 
0028 QT_END_NAMESPACE
0029 
0030 #endif // QPAIR_H