ESPHome  1.15.2
Static Public Member Functions | Static Public Attributes
esphome::is_callable< 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_callable< T, Args >

Definition at line 218 of file helpers.h.

Member Function Documentation

◆ test() [1/2]

template<class T , class... Args>
template<class U >
static auto esphome::is_callable< 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_callable< T, Args >::test (   ...) -> decltype(std::false_type())
static

Field Documentation

◆ value

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

Definition at line 224 of file helpers.h.


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