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
qminmax.h File Reference

(ccb8efbfe59bc728af2ead37ee4fcb55840644c3)

#include <QtCore/qassert.h>
#include <QtCore/qtconfigmacros.h>
#include <QtCore/qttypetraits.h>
Include dependency graph for qminmax.h:

Go to the source code of this file.

Functions

template<typename T>
QT_BEGIN_NAMESPACE constexpr const T & qMin (const T &a, const T &b)
template<typename T>
constexpr const T & qMax (const T &a, const T &b)
template<typename T>
constexpr const T & qBound (const T &min, const T &val, const T &max)
template<typename T, typename U>
constexpr QTypeTraits::Promoted< T, U > qMin (const T &a, const U &b)
template<typename T, typename U>
constexpr QTypeTraits::Promoted< T, U > qMax (const T &a, const U &b)
template<typename T, typename U>
constexpr QTypeTraits::Promoted< T, U > qBound (const T &min, const U &val, const T &max)
template<typename T, typename U>
constexpr QTypeTraits::Promoted< T, U > qBound (const T &min, const T &val, const U &max)
template<typename T, typename U>
constexpr QTypeTraits::Promoted< T, U > qBound (const U &min, const T &val, const T &max)

Function Documentation

◆ qBound() [1/4]

template<typename T>
const T & qBound ( const T & min,
const T & val,
const T & max )
inlineconstexpr

Definition at line 23 of file qminmax.h.

◆ qBound() [2/4]

template<typename T, typename U>
QTypeTraits::Promoted< T, U > qBound ( const T & min,
const T & val,
const U & max )
inlineconstexpr

Definition at line 51 of file qminmax.h.

◆ qBound() [3/4]

template<typename T, typename U>
QTypeTraits::Promoted< T, U > qBound ( const T & min,
const U & val,
const T & max )
inlineconstexpr

Definition at line 45 of file qminmax.h.

◆ qBound() [4/4]

template<typename T, typename U>
QTypeTraits::Promoted< T, U > qBound ( const U & min,
const T & val,
const T & max )
inlineconstexpr

Definition at line 58 of file qminmax.h.

◆ qMax() [1/2]

template<typename T>
const T & qMax ( const T & a,
const T & b )
inlineconstexpr

Definition at line 21 of file qminmax.h.

◆ qMax() [2/2]

template<typename T, typename U>
QTypeTraits::Promoted< T, U > qMax ( const T & a,
const U & b )
inlineconstexpr

Definition at line 37 of file qminmax.h.

◆ qMin() [1/2]

template<typename T>
QT_BEGIN_NAMESPACE constexpr const T & qMin ( const T & a,
const T & b )
inlineconstexpr

Definition at line 19 of file qminmax.h.

◆ qMin() [2/2]

template<typename T, typename U>
QTypeTraits::Promoted< T, U > qMin ( const T & a,
const U & b )
inlineconstexpr

Definition at line 29 of file qminmax.h.