Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QOverload< Args > Struct Template Reference

#include <qoverload.h>

+ Inheritance diagram for QOverload< Args >:
+ Collaboration diagram for QOverload< Args >:

Public Member Functions

template<typename R >
constexpr auto operator() (R(*ptr)(Args...)) const noexcept -> decltype(ptr)
 
- Public Member Functions inherited from QConstOverload< Args... >
constexpr auto operator() (R(T::*ptr)(Args...) const) const noexcept -> decltype(ptr)
 
- Public Member Functions inherited from QNonConstOverload< Args... >
constexpr auto operator() (R(T::*ptr)(Args...)) const noexcept -> decltype(ptr)
 

Static Public Member Functions

template<typename R >
static constexpr auto of (R(*ptr)(Args...)) noexcept -> decltype(ptr)
 
- Static Public Member Functions inherited from QConstOverload< Args... >
static constexpr auto of (R(T::*ptr)(Args...) const) noexcept -> decltype(ptr)
 
- Static Public Member Functions inherited from QNonConstOverload< Args... >
static constexpr auto of (R(T::*ptr)(Args...)) noexcept -> decltype(ptr)
 

Detailed Description

template<typename... Args>
struct QOverload< Args >

Definition at line 49 of file qoverload.h.

Member Function Documentation

◆ of()

template<typename... Args>
template<typename R >
static constexpr auto QOverload< Args >::of ( R(*)(Args...) ptr) -> decltype(ptr)
inlinestaticconstexprnoexcept

Definition at line 61 of file qoverload.h.

References ptr().

+ Here is the call graph for this function:

◆ operator()()

template<typename... Args>
template<typename R >
constexpr auto QOverload< Args >::operator() ( R(*)(Args...) ptr) const -> decltype(ptr)
inlineconstexprnoexcept

Definition at line 57 of file qoverload.h.

References ptr().

+ Here is the call graph for this function:

The documentation for this struct was generated from the following file: