Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qpair.qdoc
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5 \headerfile <QPair>
6 \inmodule QtCore
7 \brief Compatibility alias for constructing pair objects.
8*/
9
10/*!
11 \typealias QPair
12 \relates <QPair>
13 \since 6.0
14 Alias for std::pair<T1, T2>.
15*/
16
17/*!
18 \fn template <class T1, class T2> QPair<T1, T2> qMakePair(T1 &&value1, T2 &&value2)
19 \deprecated
20 \relates <QPair>
21
22 qMakePair forwards its arguments to std::make_pair, and returns
23 the resulting std::pair. It is provided for backwards compatibility.
24 Use std::make_pair directly instead.
25*/