summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qpair.qdoc
blob: 458938618f67e9bb9ee705113ba577fe3c4d85b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only

/*!
    \headerfile <QPair>
    \inmodule QtCore
    \brief Compatibility alias for constructing pair objects.
*/

/*!
    \typealias QPair
    \relates <QPair>
    \since 6.0
    Alias for std::pair\<T1, T2\>.
*/

/*!
    \fn template <class T1, class T2> QPair<T1, T2> qMakePair(T1 &&value1, T2 &&value2)
    \deprecated
    \relates <QPair>

    qMakePair forwards its arguments to std::make_pair, and returns
    the resulting std::pair. It is provided for backwards compatibility.
    Use std::make_pair directly instead.
*/