1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
4/*! \fn template <typename T> auto qOverload(T functionPointer)
8 Returns a pointer to an overloaded function. The template
9 parameter is the list of the argument types of the function.
10 \a functionPointer is the pointer to the (member) function:
12 \snippet code/src_corelib_global_qglobal.cpp 52
14 If a member function is also const-overloaded \l qConstOverload and
15 \l qNonConstOverload need to be used.
17 \sa qConstOverload(), qNonConstOverload(), {Differences between String-Based
18 and Functor-Based Connections}
21/*! \fn template <typename T> auto qConstOverload(T memberFunctionPointer)
25 Returns the \a memberFunctionPointer pointer to a constant member function:
27 \snippet code/src_corelib_global_qglobal.cpp 54
29 \sa qOverload, qNonConstOverload, {Differences between String-Based
30 and Functor-Based Connections}
33/*! \fn template <typename T> auto qNonConstOverload(T memberFunctionPointer)
37 Returns the \a memberFunctionPointer pointer to a non-constant member function:
39 \snippet code/src_corelib_global_qglobal.cpp 54
41 \sa qOverload, qNonConstOverload, {Differences between String-Based
42 and Functor-Based Connections}