mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2024-11-30 07:46:51 +08:00
40 lines
909 B
Plaintext
40 lines
909 B
Plaintext
// Copyright (C) 2022 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
|
|
|
|
/*! \fn template <typename T> const T &qMin(const T &a, const T &b)
|
|
\relates <QtMinMax>
|
|
|
|
Returns the minimum of \a a and \a b.
|
|
|
|
Example:
|
|
|
|
\snippet code/src_corelib_global_qglobal.cpp 13
|
|
|
|
\sa qMax(), qBound()
|
|
*/
|
|
|
|
/*! \fn template <typename T> const T &qMax(const T &a, const T &b)
|
|
\relates <QtMinMax>
|
|
|
|
Returns the maximum of \a a and \a b.
|
|
|
|
Example:
|
|
|
|
\snippet code/src_corelib_global_qglobal.cpp 14
|
|
|
|
\sa qMin(), qBound()
|
|
*/
|
|
|
|
/*! \fn template <typename T> const T &qBound(const T &min, const T &val, const T &max)
|
|
\relates <QtMinMax>
|
|
|
|
Returns \a val bounded by \a min and \a max. This is equivalent
|
|
to qMax(\a min, qMin(\a val, \a max)).
|
|
|
|
Example:
|
|
|
|
\snippet code/src_corelib_global_qglobal.cpp 15
|
|
|
|
\sa qMin(), qMax()
|
|
*/
|