Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qswap.qdoc
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*! \fn template <typename T> void qSwap(T &var1, T &var2)
5 \relates <QtSwap>
6 \deprecated
7
8 Use \c std::swap instead.
9
10 Exchanges the values of variables \a var1 and \a var2.
11
12 Example:
13 \snippet code/doc_src_qalgorithms.cpp 0
14*/