From ff8de321e22b1e91f7fc04ffe54609b045f23835 Mon Sep 17 00:00:00 2001 From: Sona Kurazyan Date: Thu, 28 Jul 2022 11:41:28 +0200 Subject: Extract header qoverload.h from qglobal.h Task-number: QTBUG-99313 Change-Id: Id827f95b5aa5d4e0d57dcc1060a0746bcaa34db3 Reviewed-by: Thiago Macieira --- src/corelib/global/qglobal.cpp | 51 ------------------------------------------ 1 file changed, 51 deletions(-) (limited to 'src/corelib/global/qglobal.cpp') diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp index 3c9d947577..796749c146 100644 --- a/src/corelib/global/qglobal.cpp +++ b/src/corelib/global/qglobal.cpp @@ -1217,57 +1217,6 @@ static_assert(sizeof(qint64) == 8, "Internal error, qint64 is misdefined"); \sa qMin(), qMax() */ -/*! \fn template auto qOverload(T functionPointer) - \relates - \since 5.7 - - Returns a pointer to an overloaded function. The template - parameter is the list of the argument types of the function. - \a functionPointer is the pointer to the (member) function: - - \snippet code/src_corelib_global_qglobal.cpp 52 - - If a member function is also const-overloaded \l qConstOverload and - \l qNonConstOverload need to be used. - - qOverload() requires C++14 enabled. In C++11-only code, the helper - classes QOverload, QConstOverload, and QNonConstOverload can be used directly: - - \snippet code/src_corelib_global_qglobal.cpp 53 - - \note Qt detects the necessary C++14 compiler support by way of the feature - test recommendations from - \l{https://isocpp.org/std/standing-documents/sd-6-sg10-feature-test-recommendations} - {C++ Committee's Standing Document 6}. - - \sa qConstOverload(), qNonConstOverload(), {Differences between String-Based - and Functor-Based Connections} -*/ - -/*! \fn template auto qConstOverload(T memberFunctionPointer) - \relates - \since 5.7 - - Returns the \a memberFunctionPointer pointer to a constant member function: - - \snippet code/src_corelib_global_qglobal.cpp 54 - - \sa qOverload, qNonConstOverload, {Differences between String-Based - and Functor-Based Connections} -*/ - -/*! \fn template auto qNonConstOverload(T memberFunctionPointer) - \relates - \since 5.7 - - Returns the \a memberFunctionPointer pointer to a non-constant member function: - - \snippet code/src_corelib_global_qglobal.cpp 54 - - \sa qOverload, qNonConstOverload, {Differences between String-Based - and Functor-Based Connections} -*/ - /*! \macro QT_VERSION_CHECK(major, minor, patch) \relates -- cgit v1.2.3