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
QtPrivate::ComputeFunctorArgumentCount< Functor, List< ArgList... > > Struct Template Reference

#include <qobjectdefs_impl.h>

+ Collaboration diagram for QtPrivate::ComputeFunctorArgumentCount< Functor, List< ArgList... > >:

Public Types

enum  { Ok = sizeof(test(std::declval<Functor>())) == sizeof(int) , Value = Ok ? int(sizeof...(ArgList)) : int(ComputeFunctorArgumentCountHelper<Functor, List<ArgList...>, Ok>::Value) }
 

Static Public Member Functions

template<typename F >
static auto test (F f) -> decltype(((f.operator()((std::declval< ArgList >())...)), int()))
 
static char test (...)
 

Detailed Description

template<typename Functor, typename... ArgList>
struct QtPrivate::ComputeFunctorArgumentCount< Functor, List< ArgList... > >

Definition at line 337 of file qobjectdefs_impl.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename Functor , typename... ArgList>
anonymous enum
Enumerator
Ok 
Value 

Definition at line 341 of file qobjectdefs_impl.h.

Member Function Documentation

◆ test() [1/2]

template<typename Functor , typename... ArgList>
static char QtPrivate::ComputeFunctorArgumentCount< Functor, List< ArgList... > >::test ( ...)
static

◆ test() [2/2]

template<typename Functor , typename... ArgList>
template<typename F >
static auto QtPrivate::ComputeFunctorArgumentCount< Functor, List< ArgList... > >::test ( F f) -> decltype(((f.operator()((std::declval< ArgList >())...)), int()))
static

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