ESPHome  2024.4.1
Static Public Member Functions | Static Public Attributes
esphome::is_invocable< T, Args > Struct Template Reference

#include <helpers.h>

Static Public Member Functions

template<class U >
static auto test (U *p) -> decltype((*p)(std::declval< Args >()...), void(), std::true_type())
 
template<class U >
static auto test (...) -> decltype(std::false_type())
 

Static Public Attributes

static constexpr auto value = decltype(test<T>(nullptr))::value
 

Detailed Description

template<class T, class... Args>
struct esphome::is_invocable< T, Args >

Definition at line 105 of file helpers.h.

Member Function Documentation

◆ test() [1/2]

template<class T , class... Args>
template<class U >
static auto esphome::is_invocable< T, Args >::test ( U *  p) -> decltype((*p)(std::declval< Args >()...), void(), std::true_type())
static

◆ test() [2/2]

template<class T , class... Args>
template<class U >
static auto esphome::is_invocable< T, Args >::test (   ...) -> decltype(std::false_type())
static

Field Documentation

◆ value

template<class T , class... Args>
constexpr auto esphome::is_invocable< T, Args >::value = decltype(test<T>(nullptr))::value
static

Definition at line 108 of file helpers.h.


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