QtBase  v6.3.1
Public Types | Static Public Member Functions | List of all members
QtPrivate::ComputeFunctorArgumentCount< Functor, List< ArgList... > > Struct Template Reference

#include <qobjectdefs_impl.h>

Public Types

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

Static Public Member Functions

template<typename D >
static D dummy ()
 
template<typename F >
static auto test (F f) -> decltype(((f.operator()((dummy< ArgList >())...)), int()))
 
static char test (...)
 

Detailed Description

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

Definition at line 354 of file qobjectdefs_impl.h.

Member Enumeration Documentation

◆ anonymous enum

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

Definition at line 359 of file qobjectdefs_impl.h.

Member Function Documentation

◆ dummy()

template<typename Functor , typename... ArgList>
template<typename D >
static D QtPrivate::ComputeFunctorArgumentCount< Functor, List< ArgList... > >::dummy ( )
static

◆ 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) -> decltype(((f.operator()((dummy< ArgList >())...)), int()))
static

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